all: fix json
This commit is contained in:
parent
d722578543
commit
fc3d0cdaeb
|
@ -104,6 +104,7 @@ func (l Lease) MarshalJSON() ([]byte, error) {
|
|||
return json.Marshal(&struct {
|
||||
HWAddr string `json:"mac"`
|
||||
Expiry string `json:"expires,omitempty"`
|
||||
IsStatic bool `json:"static,omitempty"`
|
||||
lease
|
||||
}{
|
||||
HWAddr: l.HWAddr.String(),
|
||||
|
|
|
@ -1849,7 +1849,6 @@
|
|||
- 'mac'
|
||||
- 'ip'
|
||||
- 'hostname'
|
||||
- 'expires'
|
||||
'properties':
|
||||
'mac':
|
||||
'type': 'string'
|
||||
|
|
Loading…
Reference in New Issue