Skip to content

Commit

Permalink
api: fix device's tag update with empty tag
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybarreto authored and gustavosbarreto committed Aug 2, 2022
1 parent 2047080 commit 9e378b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/request/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type DeviceRemoveTag struct {
// DeviceUpdateTag is the structure to represent the request data for device update tags endpoint.
type DeviceUpdateTag struct {
DeviceParam
Tags []string `json:"tags" validate:"required,min=1,max=3,unique,dive,min=3,max=255,alphanum,ascii,excludes=/@&:"`
Tags []string `json:"tags" validate:"required,min=0,max=3,unique,dive,min=3,max=255,alphanum,ascii,excludes=/@&:"`
}

type DeviceIdentity struct {
Expand Down

0 comments on commit 9e378b1

Please sign in to comment.