all: fix json

This commit is contained in:
Stanislav Chzhen 2023-04-05 13:00:59 +03:00
parent d722578543
commit fc3d0cdaeb
2 changed files with 3 additions and 3 deletions

View File

@ -102,8 +102,9 @@ func (l Lease) MarshalJSON() ([]byte, error) {
type lease Lease
return json.Marshal(&struct {
HWAddr string `json:"mac"`
Expiry string `json:"expires,omitempty"`
HWAddr string `json:"mac"`
Expiry string `json:"expires,omitempty"`
IsStatic bool `json:"static,omitempty"`
lease
}{
HWAddr: l.HWAddr.String(),

View File

@ -1849,7 +1849,6 @@
- 'mac'
- 'ip'
- 'hostname'
- 'expires'
'properties':
'mac':
'type': 'string'