Skip to content

Commit af2e555

Browse files
Change JSON field names from snake_case to camelCase in OpenAPI specs and generated code
1 parent c037075 commit af2e555

11 files changed

Lines changed: 319 additions & 319 deletions

File tree

cli/src/cmd/gateway/api/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ type APIListItem struct {
5757
Version string `json:"version"`
5858
Context string `json:"context"`
5959
Status string `json:"status"`
60-
CreatedAt string `json:"created_at"`
61-
UpdatedAt string `json:"updated_at"`
60+
CreatedAt string `json:"createdAt"`
61+
UpdatedAt string `json:"updatedAt"`
6262
}
6363

6464
// APIListResponse represents the response from GET /apis

cli/src/cmd/gateway/mcp/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ type MCPListItem struct {
5656
Version string `json:"version"`
5757
Context string `json:"context"`
5858
Status string `json:"status"`
59-
CreatedAt string `json:"created_at"`
60-
UpdatedAt string `json:"updated_at"`
59+
CreatedAt string `json:"createdAt"`
60+
UpdatedAt string `json:"updatedAt"`
6161
}
6262

6363
// MCPListResponse represents the response from GET /mcp-proxies
6464
type MCPListResponse struct {
6565
Status string `json:"status"`
6666
Count int `json:"count"`
67-
MCPProxies []MCPListItem `json:"mcp_proxies"`
67+
MCPProxies []MCPListItem `json:"mcpProxies"`
6868
}
6969

7070
func runListCommand() error {

gateway/gateway-controller/api/openapi-admin.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ components:
119119
- deployed
120120
- failed
121121
- undeployed
122-
created_at:
122+
createdAt:
123123
type: string
124124
format: date-time
125-
updated_at:
125+
updatedAt:
126126
type: string
127127
format: date-time
128-
deployed_at:
128+
deployedAt:
129129
type: string
130130
format: date-time
131131

gateway/gateway-controller/api/openapi.yaml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ paths:
759759
message:
760760
type: string
761761
example: Certificates reloaded and SDS updated successfully
762-
total_bytes:
762+
totalBytes:
763763
type: integer
764764
description: Total bytes of all loaded certificates
765765
example: 221599
@@ -891,7 +891,7 @@ paths:
891891
count:
892892
type: integer
893893
example: 5
894-
mcp_proxies:
894+
mcpProxies:
895895
type: array
896896
items:
897897
$ref: "#/components/schemas/MCPProxyListItem"
@@ -2268,7 +2268,7 @@ components:
22682268
type: string
22692269
description: Logical message name.
22702270
example: IssueEvent
2271-
content_type:
2271+
contentType:
22722272
type: string
22732273
description: Content type of the payload.
22742274
example: application/json
@@ -2301,7 +2301,7 @@ components:
23012301
type: string
23022302
description: Unique id for the created API configuration
23032303
example: weather-api-v1.0
2304-
created_at:
2304+
createdAt:
23052305
type: string
23062306
format: date-time
23072307
example: 2025-10-11T10:30:00Z
@@ -2317,7 +2317,7 @@ components:
23172317
id:
23182318
type: string
23192319
example: weather-api-v1.0
2320-
updated_at:
2320+
updatedAt:
23212321
type: string
23222322
format: date-time
23232323
example: 2025-10-11T11:45:00Z
@@ -2543,11 +2543,11 @@ components:
25432543
- failed
25442544
- undeployed
25452545
example: deployed
2546-
created_at:
2546+
createdAt:
25472547
type: string
25482548
format: date-time
25492549
example: 2025-10-11T10:30:00Z
2550-
updated_at:
2550+
updatedAt:
25512551
type: string
25522552
format: date-time
25532553
example: 2025-10-11T10:30:00Z
@@ -2576,15 +2576,15 @@ components:
25762576
- deployed
25772577
- failed
25782578
example: deployed
2579-
created_at:
2579+
createdAt:
25802580
type: string
25812581
format: date-time
25822582
example: 2025-10-11T10:30:00Z
2583-
updated_at:
2583+
updatedAt:
25842584
type: string
25852585
format: date-time
25862586
example: 2025-10-11T10:30:00Z
2587-
deployed_at:
2587+
deployedAt:
25882588
type: string
25892589
format: date-time
25902590
example: 2025-10-11T10:30:05Z
@@ -2769,7 +2769,7 @@ components:
27692769
type: string
27702770
description: Unique handle (metadata.name) for the created MCP proxy configuration
27712771
example: some-mcp-v1.0
2772-
created_at:
2772+
createdAt:
27732773
type: string
27742774
format: date-time
27752775
example: 2025-12-12T10:30:00Z
@@ -2787,7 +2787,7 @@ components:
27872787
type: string
27882788
description: Unique handle (metadata.name) for the created MCP proxy configuration
27892789
example: some-mcp-v1.0
2790-
updated_at:
2790+
updatedAt:
27912791
type: string
27922792
format: date-time
27932793
example: 2025-12-12T11:45:00Z
@@ -2817,11 +2817,11 @@ components:
28172817
- deployed
28182818
- failed
28192819
example: deployed
2820-
created_at:
2820+
createdAt:
28212821
type: string
28222822
format: date-time
28232823
example: 2025-11-24T10:30:00Z
2824-
updated_at:
2824+
updatedAt:
28252825
type: string
28262826
format: date-time
28272827
example: 2025-11-24T10:30:00Z
@@ -2851,15 +2851,15 @@ components:
28512851
- deployed
28522852
- failed
28532853
example: deployed
2854-
created_at:
2854+
createdAt:
28552855
type: string
28562856
format: date-time
28572857
example: 2025-11-24T10:30:00Z
2858-
updated_at:
2858+
updatedAt:
28592859
type: string
28602860
format: date-time
28612861
example: 2025-11-24T10:30:00Z
2862-
deployed_at:
2862+
deployedAt:
28632863
type: string
28642864
format: date-time
28652865
example: 2025-11-24T10:30:05Z
@@ -2976,7 +2976,7 @@ components:
29762976
id:
29772977
type: string
29782978
example: openai
2979-
created_at:
2979+
createdAt:
29802980
type: string
29812981
format: date-time
29822982
example: 2025-10-11T10:30:00Z
@@ -2993,7 +2993,7 @@ components:
29932993
id:
29942994
type: string
29952995
example: openai
2996-
updated_at:
2996+
updatedAt:
29972997
type: string
29982998
format: date-time
29992999
example: 2025-10-11T11:45:00Z
@@ -3007,11 +3007,11 @@ components:
30073007
displayName:
30083008
type: string
30093009
example: OpenAI
3010-
created_at:
3010+
createdAt:
30113011
type: string
30123012
format: date-time
30133013
example: 2025-10-11T10:30:00Z
3014-
updated_at:
3014+
updatedAt:
30153015
type: string
30163016
format: date-time
30173017
example: 2025-10-11T10:30:00Z
@@ -3033,11 +3033,11 @@ components:
30333033
metadata:
30343034
type: object
30353035
properties:
3036-
created_at:
3036+
createdAt:
30373037
type: string
30383038
format: date-time
30393039
example: 2025-10-11T10:30:00Z
3040-
updated_at:
3040+
updatedAt:
30413041
type: string
30423042
format: date-time
30433043
example: 2025-10-11T10:30:00Z
@@ -3054,7 +3054,7 @@ components:
30543054
id:
30553055
type: string
30563056
example: openai
3057-
created_at:
3057+
createdAt:
30583058
type: string
30593059
format: date-time
30603060
example: 2025-11-25T10:30:00Z
@@ -3071,7 +3071,7 @@ components:
30713071
id:
30723072
type: string
30733073
example: wso2-con-assistant
3074-
created_at:
3074+
createdAt:
30753075
type: string
30763076
format: date-time
30773077
example: 2025-11-25T10:30:00Z
@@ -3088,7 +3088,7 @@ components:
30883088
id:
30893089
type: string
30903090
example: wso2-openai-provider
3091-
updated_at:
3091+
updatedAt:
30923092
type: string
30933093
format: date-time
30943094
example: 2025-11-25T11:45:00Z
@@ -3105,7 +3105,7 @@ components:
31053105
id:
31063106
type: string
31073107
example: wso2-con-assistant
3108-
updated_at:
3108+
updatedAt:
31093109
type: string
31103110
format: date-time
31113111
example: 2025-11-25T11:45:00Z
@@ -3132,11 +3132,11 @@ components:
31323132
- deployed
31333133
- failed
31343134
example: deployed
3135-
created_at:
3135+
createdAt:
31363136
type: string
31373137
format: date-time
31383138
example: 2025-11-25T10:30:00Z
3139-
updated_at:
3139+
updatedAt:
31403140
type: string
31413141
format: date-time
31423142
example: 2025-11-25T10:30:00Z
@@ -3164,11 +3164,11 @@ components:
31643164
- deployed
31653165
- failed
31663166
example: deployed
3167-
created_at:
3167+
createdAt:
31683168
type: string
31693169
format: date-time
31703170
example: 2025-11-25T10:30:00Z
3171-
updated_at:
3171+
updatedAt:
31723172
type: string
31733173
format: date-time
31743174
example: 2025-11-25T10:30:00Z
@@ -3187,7 +3187,7 @@ components:
31873187
example: wso2-openai
31883188
configuration:
31893189
$ref: '#/components/schemas/LLMProviderConfiguration'
3190-
deployment_status:
3190+
deploymentStatus:
31913191
type: string
31923192
enum:
31933193
- pending
@@ -3197,15 +3197,15 @@ components:
31973197
metadata:
31983198
type: object
31993199
properties:
3200-
created_at:
3200+
createdAt:
32013201
type: string
32023202
format: date-time
32033203
example: 2025-11-25T10:30:00Z
3204-
updated_at:
3204+
updatedAt:
32053205
type: string
32063206
format: date-time
32073207
example: 2025-11-25T10:30:00Z
3208-
deployed_at:
3208+
deployedAt:
32093209
type: string
32103210
format: date-time
32113211
example: 2025-11-25T10:35:00Z
@@ -3224,7 +3224,7 @@ components:
32243224
example: wso2-docs-assistant
32253225
configuration:
32263226
$ref: '#/components/schemas/LLMProxyConfiguration'
3227-
deployment_status:
3227+
deploymentStatus:
32283228
type: string
32293229
enum:
32303230
- pending
@@ -3234,15 +3234,15 @@ components:
32343234
metadata:
32353235
type: object
32363236
properties:
3237-
created_at:
3237+
createdAt:
32383238
type: string
32393239
format: date-time
32403240
example: 2025-11-25T10:30:00Z
3241-
updated_at:
3241+
updatedAt:
32423242
type: string
32433243
format: date-time
32443244
example: 2025-11-25T10:30:00Z
3245-
deployed_at:
3245+
deployedAt:
32463246
type: string
32473247
format: date-time
32483248
example: 2025-11-25T10:35:00Z

0 commit comments

Comments
 (0)