From 712bc1b14b29d0ab43637cf4303a87d9e21fc957 Mon Sep 17 00:00:00 2001 From: inho Date: Fri, 25 Aug 2023 15:38:37 +0900 Subject: [PATCH] Change from snake case to Camel case in the query. --- api/restapi/embedded_spec.go | 4 ++-- .../delete_config_bgp_neigh_ip_address_parameters.go | 4 ++-- .../delete_config_bgp_neigh_ip_address_urlbuilder.go | 2 +- api/swagger.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/restapi/embedded_spec.go b/api/restapi/embedded_spec.go index 625e3730c..3b52eaa51 100644 --- a/api/restapi/embedded_spec.go +++ b/api/restapi/embedded_spec.go @@ -181,7 +181,7 @@ func init() { "type": "integer", "format": "int32", "description": "Remote ASN number", - "name": "remote_as", + "name": "remoteAs", "in": "query" } ], @@ -4552,7 +4552,7 @@ func init() { "type": "integer", "format": "int32", "description": "Remote ASN number", - "name": "remote_as", + "name": "remoteAs", "in": "query" } ], diff --git a/api/restapi/operations/delete_config_bgp_neigh_ip_address_parameters.go b/api/restapi/operations/delete_config_bgp_neigh_ip_address_parameters.go index 9d6171867..c6d6f0a63 100644 --- a/api/restapi/operations/delete_config_bgp_neigh_ip_address_parameters.go +++ b/api/restapi/operations/delete_config_bgp_neigh_ip_address_parameters.go @@ -59,7 +59,7 @@ func (o *DeleteConfigBgpNeighIPAddressParams) BindRequest(r *http.Request, route res = append(res, err) } - qRemoteAs, qhkRemoteAs, _ := qs.GetOK("remote_as") + qRemoteAs, qhkRemoteAs, _ := qs.GetOK("remoteAs") if err := o.bindRemoteAs(qRemoteAs, qhkRemoteAs, route.Formats); err != nil { res = append(res, err) } @@ -99,7 +99,7 @@ func (o *DeleteConfigBgpNeighIPAddressParams) bindRemoteAs(rawData []string, has value, err := swag.ConvertInt32(raw) if err != nil { - return errors.InvalidType("remote_as", "query", "int32", raw) + return errors.InvalidType("remoteAs", "query", "int32", raw) } o.RemoteAs = &value diff --git a/api/restapi/operations/delete_config_bgp_neigh_ip_address_urlbuilder.go b/api/restapi/operations/delete_config_bgp_neigh_ip_address_urlbuilder.go index 80dfc51a7..e4f4ffafb 100644 --- a/api/restapi/operations/delete_config_bgp_neigh_ip_address_urlbuilder.go +++ b/api/restapi/operations/delete_config_bgp_neigh_ip_address_urlbuilder.go @@ -66,7 +66,7 @@ func (o *DeleteConfigBgpNeighIPAddressURL) Build() (*url.URL, error) { remoteAsQ = swag.FormatInt32(*o.RemoteAs) } if remoteAsQ != "" { - qs.Set("remote_as", remoteAsQ) + qs.Set("remoteAs", remoteAsQ) } _result.RawQuery = qs.Encode() diff --git a/api/swagger.yml b/api/swagger.yml index 54ed9e0e6..34a36f9fd 100644 --- a/api/swagger.yml +++ b/api/swagger.yml @@ -2155,7 +2155,7 @@ paths: type: string required: true description: Neighbor IP address - - name: remote_as + - name: remoteAs in: query type: integer format: int32