all: fix json
This commit is contained in:
parent
d722578543
commit
fc3d0cdaeb
|
@ -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(),
|
||||
|
|
|
@ -1849,7 +1849,6 @@
|
|||
- 'mac'
|
||||
- 'ip'
|
||||
- 'hostname'
|
||||
- 'expires'
|
||||
'properties':
|
||||
'mac':
|
||||
'type': 'string'
|
||||
|
|
Loading…
Reference in New Issue