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

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

View File

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