diff --git a/internal/dhcpd/dhcpd.go b/internal/dhcpd/dhcpd.go index 6ac830d6..c26f32ed 100644 --- a/internal/dhcpd/dhcpd.go +++ b/internal/dhcpd/dhcpd.go @@ -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(), diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index 21f6ef66..6d1d02f3 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1849,7 +1849,6 @@ - 'mac' - 'ip' - 'hostname' - - 'expires' 'properties': 'mac': 'type': 'string'