Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e7b58a9

Browse files
authored
Merge pull request #3282 from pshchelo/apiversion-struct-typo
Fix JSON field name hints in APIVersion structs
2 parents d03d5d1 + 83aae75 commit e7b58a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)