Skip to content

Commit 649a263

Browse files
committed
Regenerate go petstore with ./bin/go-petstore.sh
1 parent 23f5124 commit 649a263

File tree

7 files changed

+54
-54
lines changed

7 files changed

+54
-54
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.20-SNAPSHOT
1+
2.4.31-SNAPSHOT

samples/client/petstore/go/go-petstore/api/swagger.yaml

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ paths:
5151
schema:
5252
$ref: "#/definitions/Pet"
5353
x-exportParamName: "Body"
54-
responses:
55-
"405":
56-
description: "Invalid input"
5754
security:
5855
- petstore_auth:
5956
- "write:pets"
6057
- "read:pets"
58+
responses:
59+
"405":
60+
description: "Invalid input"
6161
put:
6262
tags:
6363
- "pet"
@@ -78,17 +78,17 @@ paths:
7878
schema:
7979
$ref: "#/definitions/Pet"
8080
x-exportParamName: "Body"
81+
security:
82+
- petstore_auth:
83+
- "write:pets"
84+
- "read:pets"
8185
responses:
8286
"400":
8387
description: "Invalid ID supplied"
8488
"404":
8589
description: "Pet not found"
8690
"405":
8791
description: "Validation exception"
88-
security:
89-
- petstore_auth:
90-
- "write:pets"
91-
- "read:pets"
9292
/pet/findByStatus:
9393
get:
9494
tags:
@@ -114,6 +114,10 @@ paths:
114114
default: "available"
115115
collectionFormat: "csv"
116116
x-exportParamName: "Status"
117+
security:
118+
- petstore_auth:
119+
- "write:pets"
120+
- "read:pets"
117121
responses:
118122
"200":
119123
description: "successful operation"
@@ -123,10 +127,6 @@ paths:
123127
$ref: "#/definitions/Pet"
124128
"400":
125129
description: "Invalid status value"
126-
security:
127-
- petstore_auth:
128-
- "write:pets"
129-
- "read:pets"
130130
/pet/findByTags:
131131
get:
132132
tags:
@@ -148,6 +148,11 @@ paths:
148148
type: "string"
149149
collectionFormat: "csv"
150150
x-exportParamName: "Tags"
151+
security:
152+
- petstore_auth:
153+
- "write:pets"
154+
- "read:pets"
155+
deprecated: true
151156
responses:
152157
"200":
153158
description: "successful operation"
@@ -157,11 +162,6 @@ paths:
157162
$ref: "#/definitions/Pet"
158163
"400":
159164
description: "Invalid tag value"
160-
security:
161-
- petstore_auth:
162-
- "write:pets"
163-
- "read:pets"
164-
deprecated: true
165165
/pet/{petId}:
166166
get:
167167
tags:
@@ -180,6 +180,8 @@ paths:
180180
type: "integer"
181181
format: "int64"
182182
x-exportParamName: "PetId"
183+
security:
184+
- api_key: []
183185
responses:
184186
"200":
185187
description: "successful operation"
@@ -189,8 +191,6 @@ paths:
189191
description: "Invalid ID supplied"
190192
"404":
191193
description: "Pet not found"
192-
security:
193-
- api_key: []
194194
post:
195195
tags:
196196
- "pet"
@@ -224,13 +224,13 @@ paths:
224224
type: "string"
225225
x-exportParamName: "Status"
226226
x-optionalDataType: "String"
227-
responses:
228-
"405":
229-
description: "Invalid input"
230227
security:
231228
- petstore_auth:
232229
- "write:pets"
233230
- "read:pets"
231+
responses:
232+
"405":
233+
description: "Invalid input"
234234
delete:
235235
tags:
236236
- "pet"
@@ -254,13 +254,13 @@ paths:
254254
type: "integer"
255255
format: "int64"
256256
x-exportParamName: "PetId"
257-
responses:
258-
"400":
259-
description: "Invalid pet value"
260257
security:
261258
- petstore_auth:
262259
- "write:pets"
263260
- "read:pets"
261+
responses:
262+
"400":
263+
description: "Invalid pet value"
264264
/pet/{petId}/uploadImage:
265265
post:
266266
tags:
@@ -293,15 +293,15 @@ paths:
293293
required: false
294294
type: "file"
295295
x-exportParamName: "File"
296+
security:
297+
- petstore_auth:
298+
- "write:pets"
299+
- "read:pets"
296300
responses:
297301
"200":
298302
description: "successful operation"
299303
schema:
300304
$ref: "#/definitions/ApiResponse"
301-
security:
302-
- petstore_auth:
303-
- "write:pets"
304-
- "read:pets"
305305
/store/inventory:
306306
get:
307307
tags:
@@ -312,6 +312,8 @@ paths:
312312
produces:
313313
- "application/json"
314314
parameters: []
315+
security:
316+
- api_key: []
315317
responses:
316318
"200":
317319
description: "successful operation"
@@ -320,8 +322,6 @@ paths:
320322
additionalProperties:
321323
type: "integer"
322324
format: "int32"
323-
security:
324-
- api_key: []
325325
/store/order:
326326
post:
327327
tags:
@@ -613,13 +613,13 @@ paths:
613613
schema:
614614
$ref: "#/definitions/Client"
615615
x-exportParamName: "Body"
616+
security:
617+
- api_key_query: []
616618
responses:
617619
"200":
618620
description: "successful operation"
619621
schema:
620622
$ref: "#/definitions/Client"
621-
security:
622-
- api_key_query: []
623623
/fake:
624624
get:
625625
tags:
@@ -862,13 +862,13 @@ paths:
862862
type: "string"
863863
x-exportParamName: "Callback"
864864
x-optionalDataType: "String"
865+
security:
866+
- http_basic_test: []
865867
responses:
866868
"400":
867869
description: "Invalid username supplied"
868870
"404":
869871
description: "User not found"
870-
security:
871-
- http_basic_test: []
872872
patch:
873873
tags:
874874
- "fake"

samples/client/petstore/go/go-petstore/model_boolean.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ type Boolean bool
1414

1515
// List of Boolean
1616
const (
17-
TRUE Boolean = true
18-
FALSE Boolean = false
17+
TRUE_Boolean Boolean = true
18+
FALSE_Boolean Boolean = false
1919
)

samples/client/petstore/go/go-petstore/model_enum_class.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type EnumClass string
1414

1515
// List of EnumClass
1616
const (
17-
ABC EnumClass = "_abc"
18-
EFG EnumClass = "-efg"
19-
XYZ EnumClass = "(xyz)"
17+
ABC_EnumClass EnumClass = "_abc"
18+
EFG_EnumClass EnumClass = "-efg"
19+
XYZ_EnumClass EnumClass = "(xyz)"
2020
)

samples/client/petstore/go/go-petstore/model_ints.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ type Ints int32
1414

1515
// List of Ints
1616
const (
17-
_0 Ints = 0
18-
_1 Ints = 1
19-
_2 Ints = 2
20-
_3 Ints = 3
21-
_4 Ints = 4
22-
_5 Ints = 5
23-
_6 Ints = 6
17+
NUMBER_0_Ints Ints = 0
18+
NUMBER_1_Ints Ints = 1
19+
NUMBER_2_Ints Ints = 2
20+
NUMBER_3_Ints Ints = 3
21+
NUMBER_4_Ints Ints = 4
22+
NUMBER_5_Ints Ints = 5
23+
NUMBER_6_Ints Ints = 6
2424
)

samples/client/petstore/go/go-petstore/model_numbers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ type Numbers float32
1414

1515
// List of Numbers
1616
const (
17-
_7 Numbers = 7
18-
_8 Numbers = 8
19-
_9 Numbers = 9
20-
_10 Numbers = 10
17+
NUMBER_7_Numbers Numbers = 7
18+
NUMBER_8_Numbers Numbers = 8
19+
NUMBER_9_Numbers Numbers = 9
20+
NUMBER_10_Numbers Numbers = 10
2121
)

samples/client/petstore/go/go-petstore/model_outer_enum.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type OuterEnum string
1414

1515
// List of OuterEnum
1616
const (
17-
PLACED OuterEnum = "placed"
18-
APPROVED OuterEnum = "approved"
19-
DELIVERED OuterEnum = "delivered"
17+
PLACED_OuterEnum OuterEnum = "placed"
18+
APPROVED_OuterEnum OuterEnum = "approved"
19+
DELIVERED_OuterEnum OuterEnum = "delivered"
2020
)

0 commit comments

Comments
 (0)