netbox-community / go-netbox

The official Go API client for Netbox IPAM and DCIM service.
Other
195 stars 146 forks source link

Issue: #55, Netbox 2.7 API scheme migration #56

Closed miticotoby closed 4 years ago

miticotoby commented 4 years ago

this should fix Issue#55 at least in part

I'm sure there is a better way to fix this so please let me know I can make adjustmets. developing is not my forte, so

this will prob break some previous versions, but so did the API change so not sure what the best way to go about this may be.

there is prob more bugs of this type in the new API so maybe more commits to follow. so far it seems to fix most of it

kobayashi commented 4 years ago

Close this PR because the current master branch can handle this.

// SiteStatus Status
// swagger:model SiteStatus
type SiteStatus struct {

    // label
    // Required: true
    Label *string `json:"label"`

    // value
    // Required: true
    Value *string `json:"value"`
}