mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
parent
0619581b03
commit
34c4ce4ffb
1 changed files with 2 additions and 2 deletions
|
|
@ -121,9 +121,9 @@ func (t LabelType) MarshalJSON() ([]byte, error) {
|
|||
|
||||
func (t *LabelType) UnmarshalJSON(b []byte) error {
|
||||
switch string(b) {
|
||||
case `"regular"`:
|
||||
case `"regular"`, "0":
|
||||
*t = LabelTypeRegular
|
||||
case `"builtin"`:
|
||||
case `"builtin"`, "1":
|
||||
*t = LabelTypeBuiltIn
|
||||
default:
|
||||
return errors.Errorf("invalid LabelType: %s", string(b))
|
||||
|
|
|
|||
Loading…
Reference in a new issue