Skip to content

Commit a7e2d67

Browse files
authored
Fix JSON field name hints in APIVersion structs
`son:"status"` is not a valid hint for JSON (de/en)coder.
1 parent 776ad36 commit a7e2d67

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openstack/loadbalancer/v2/apiversions/results.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import "github.com/gophercloud/gophercloud/v2/pagination"
55
// APIVersion represents an API version for load balancer. It contains
66
// the status of the API, and its unique ID.
77
type APIVersion struct {
8-
Status string `son:"status"`
8+
Status string `json:"status"`
99
ID string `json:"id"`
1010
}
1111

openstack/networking/v2/apiversions/results.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
// APIVersion represents an API version for Neutron. It contains the status of
88
// the API, and its unique ID.
99
type APIVersion struct {
10-
Status string `son:"status"`
10+
Status string `json:"status"`
1111
ID string `json:"id"`
1212
}
1313

0 commit comments

Comments
 (0)