We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db8453d + a5c1c90 commit b20d5f4Copy full SHA for b20d5f4
dtos/autoevent.go
@@ -21,7 +21,7 @@ type AutoEvent struct {
21
type Retention struct {
22
MaxCap int64 `json:"maxCap" yaml:"maxCap"`
23
MinCap int64 `json:"minCap" yaml:"minCap"`
24
- Duration string `json:"duration" yaml:"duration" validate:"edgex-dto-duration=0s"`
+ Duration string `json:"duration" yaml:"duration" validate:"omitempty,edgex-dto-duration=0s"`
25
}
26
27
// ToAutoEventModel transforms the AutoEvent DTO to the AutoEvent model
0 commit comments