Skip to content

Commit c2a3252

Browse files
committed
updated sample
1 parent 07a81e7 commit c2a3252

File tree

3 files changed

+50
-50
lines changed

3 files changed

+50
-50
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.6-SNAPSHOT
1+
2.4.13-SNAPSHOT

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

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ paths:
5252
$ref: "#/definitions/Pet"
5353
x-exportParamName: "Body"
5454
responses:
55-
405:
55+
"405":
5656
description: "Invalid input"
5757
security:
5858
- petstore_auth:
@@ -79,11 +79,11 @@ paths:
7979
$ref: "#/definitions/Pet"
8080
x-exportParamName: "Body"
8181
responses:
82-
400:
82+
"400":
8383
description: "Invalid ID supplied"
84-
404:
84+
"404":
8585
description: "Pet not found"
86-
405:
86+
"405":
8787
description: "Validation exception"
8888
security:
8989
- petstore_auth:
@@ -115,13 +115,13 @@ paths:
115115
collectionFormat: "csv"
116116
x-exportParamName: "Status"
117117
responses:
118-
200:
118+
"200":
119119
description: "successful operation"
120120
schema:
121121
type: "array"
122122
items:
123123
$ref: "#/definitions/Pet"
124-
400:
124+
"400":
125125
description: "Invalid status value"
126126
security:
127127
- petstore_auth:
@@ -149,13 +149,13 @@ paths:
149149
collectionFormat: "csv"
150150
x-exportParamName: "Tags"
151151
responses:
152-
200:
152+
"200":
153153
description: "successful operation"
154154
schema:
155155
type: "array"
156156
items:
157157
$ref: "#/definitions/Pet"
158-
400:
158+
"400":
159159
description: "Invalid tag value"
160160
security:
161161
- petstore_auth:
@@ -181,13 +181,13 @@ paths:
181181
format: "int64"
182182
x-exportParamName: "PetId"
183183
responses:
184-
200:
184+
"200":
185185
description: "successful operation"
186186
schema:
187187
$ref: "#/definitions/Pet"
188-
400:
188+
"400":
189189
description: "Invalid ID supplied"
190-
404:
190+
"404":
191191
description: "Pet not found"
192192
security:
193193
- api_key: []
@@ -225,7 +225,7 @@ paths:
225225
x-exportParamName: "Status"
226226
x-optionalDataType: "String"
227227
responses:
228-
405:
228+
"405":
229229
description: "Invalid input"
230230
security:
231231
- petstore_auth:
@@ -255,7 +255,7 @@ paths:
255255
format: "int64"
256256
x-exportParamName: "PetId"
257257
responses:
258-
400:
258+
"400":
259259
description: "Invalid pet value"
260260
security:
261261
- petstore_auth:
@@ -294,7 +294,7 @@ paths:
294294
type: "file"
295295
x-exportParamName: "File"
296296
responses:
297-
200:
297+
"200":
298298
description: "successful operation"
299299
schema:
300300
$ref: "#/definitions/ApiResponse"
@@ -313,7 +313,7 @@ paths:
313313
- "application/json"
314314
parameters: []
315315
responses:
316-
200:
316+
"200":
317317
description: "successful operation"
318318
schema:
319319
type: "object"
@@ -341,11 +341,11 @@ paths:
341341
$ref: "#/definitions/Order"
342342
x-exportParamName: "Body"
343343
responses:
344-
200:
344+
"200":
345345
description: "successful operation"
346346
schema:
347347
$ref: "#/definitions/Order"
348-
400:
348+
"400":
349349
description: "Invalid Order"
350350
/store/order/{order_id}:
351351
get:
@@ -369,13 +369,13 @@ paths:
369369
format: "int64"
370370
x-exportParamName: "OrderId"
371371
responses:
372-
200:
372+
"200":
373373
description: "successful operation"
374374
schema:
375375
$ref: "#/definitions/Order"
376-
400:
376+
"400":
377377
description: "Invalid ID supplied"
378-
404:
378+
"404":
379379
description: "Order not found"
380380
delete:
381381
tags:
@@ -395,9 +395,9 @@ paths:
395395
type: "string"
396396
x-exportParamName: "OrderId"
397397
responses:
398-
400:
398+
"400":
399399
description: "Invalid ID supplied"
400-
404:
400+
"404":
401401
description: "Order not found"
402402
/user:
403403
post:
@@ -490,7 +490,7 @@ paths:
490490
type: "string"
491491
x-exportParamName: "Password"
492492
responses:
493-
200:
493+
"200":
494494
description: "successful operation"
495495
headers:
496496
X-Rate-Limit:
@@ -503,7 +503,7 @@ paths:
503503
description: "date in UTC when token expires"
504504
schema:
505505
type: "string"
506-
400:
506+
"400":
507507
description: "Invalid username/password supplied"
508508
/user/logout:
509509
get:
@@ -537,13 +537,13 @@ paths:
537537
type: "string"
538538
x-exportParamName: "Username"
539539
responses:
540-
200:
540+
"200":
541541
description: "successful operation"
542542
schema:
543543
$ref: "#/definitions/User"
544-
400:
544+
"400":
545545
description: "Invalid username supplied"
546-
404:
546+
"404":
547547
description: "User not found"
548548
put:
549549
tags:
@@ -569,9 +569,9 @@ paths:
569569
$ref: "#/definitions/User"
570570
x-exportParamName: "Body"
571571
responses:
572-
400:
572+
"400":
573573
description: "Invalid user supplied"
574-
404:
574+
"404":
575575
description: "User not found"
576576
delete:
577577
tags:
@@ -590,9 +590,9 @@ paths:
590590
type: "string"
591591
x-exportParamName: "Username"
592592
responses:
593-
400:
593+
"400":
594594
description: "Invalid username supplied"
595-
404:
595+
"404":
596596
description: "User not found"
597597
/fake_classname_test:
598598
patch:
@@ -614,7 +614,7 @@ paths:
614614
$ref: "#/definitions/Client"
615615
x-exportParamName: "Body"
616616
responses:
617-
200:
617+
"200":
618618
description: "successful operation"
619619
schema:
620620
$ref: "#/definitions/Client"
@@ -727,9 +727,9 @@ paths:
727727
x-exportParamName: "EnumQueryDouble"
728728
x-optionalDataType: "Float64"
729729
responses:
730-
400:
730+
"400":
731731
description: "Invalid request"
732-
404:
732+
"404":
733733
description: "Not found"
734734
post:
735735
tags:
@@ -863,9 +863,9 @@ paths:
863863
x-exportParamName: "Callback"
864864
x-optionalDataType: "String"
865865
responses:
866-
400:
866+
"400":
867867
description: "Invalid username supplied"
868-
404:
868+
"404":
869869
description: "User not found"
870870
security:
871871
- http_basic_test: []
@@ -888,7 +888,7 @@ paths:
888888
$ref: "#/definitions/Client"
889889
x-exportParamName: "Body"
890890
responses:
891-
200:
891+
"200":
892892
description: "successful operation"
893893
schema:
894894
$ref: "#/definitions/Client"
@@ -907,7 +907,7 @@ paths:
907907
$ref: "#/definitions/OuterNumber"
908908
x-exportParamName: "Body"
909909
responses:
910-
200:
910+
"200":
911911
description: "Output number"
912912
schema:
913913
$ref: "#/definitions/OuterNumber"
@@ -926,7 +926,7 @@ paths:
926926
$ref: "#/definitions/OuterString"
927927
x-exportParamName: "Body"
928928
responses:
929-
200:
929+
"200":
930930
description: "Output string"
931931
schema:
932932
$ref: "#/definitions/OuterString"
@@ -945,7 +945,7 @@ paths:
945945
$ref: "#/definitions/OuterBoolean"
946946
x-exportParamName: "Body"
947947
responses:
948-
200:
948+
"200":
949949
description: "Output boolean"
950950
schema:
951951
$ref: "#/definitions/OuterBoolean"
@@ -964,7 +964,7 @@ paths:
964964
$ref: "#/definitions/OuterComposite"
965965
x-exportParamName: "Body"
966966
responses:
967-
200:
967+
"200":
968968
description: "Output composite"
969969
schema:
970970
$ref: "#/definitions/OuterComposite"
@@ -991,7 +991,7 @@ paths:
991991
type: "string"
992992
x-exportParamName: "Param2"
993993
responses:
994-
200:
994+
"200":
995995
description: "successful operation"
996996
/fake/inline-additionalProperties:
997997
post:
@@ -1013,7 +1013,7 @@ paths:
10131013
type: "string"
10141014
x-exportParamName: "Param"
10151015
responses:
1016-
200:
1016+
"200":
10171017
description: "successful operation"
10181018
/fake/body-with-query-params:
10191019
put:
@@ -1035,7 +1035,7 @@ paths:
10351035
type: "string"
10361036
x-exportParamName: "Query"
10371037
responses:
1038-
200:
1038+
"200":
10391039
description: "Success"
10401040
/another-fake/dummy:
10411041
patch:
@@ -1057,7 +1057,7 @@ paths:
10571057
$ref: "#/definitions/Client"
10581058
x-exportParamName: "Body"
10591059
responses:
1060-
200:
1060+
"200":
10611061
description: "successful operation"
10621062
schema:
10631063
$ref: "#/definitions/Client"
@@ -1269,13 +1269,13 @@ definitions:
12691269
readOnly: true
12701270
property:
12711271
type: "string"
1272-
123Number:
1272+
"123Number":
12731273
type: "integer"
12741274
readOnly: true
12751275
xml:
12761276
name: "Name"
12771277
description: "Model for testing model name same as property name"
1278-
200_response:
1278+
"200_response":
12791279
properties:
12801280
name:
12811281
type: "integer"
@@ -1444,7 +1444,7 @@ definitions:
14441444
List:
14451445
type: "object"
14461446
properties:
1447-
123-list:
1447+
"123-list":
14481448
type: "string"
14491449
Client:
14501450
type: "object"

samples/client/petstore/go/go-petstore/api_pet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ func (a *PetApiService) UploadFile(ctx context.Context, petId int64, localVarOpt
674674
if localVarOptionals != nil && localVarOptionals.AdditionalMetadata.IsSet() {
675675
localVarFormParams.Add("additionalMetadata", parameterToString(localVarOptionals.AdditionalMetadata.Value(), ""))
676676
}
677-
var localVarFile *os.File
677+
var localVarFile *os.File
678678
if localVarOptionals != nil && localVarOptionals.File.IsSet() {
679679
localVarFileOk := false
680680
localVarFile, localVarFileOk = localVarOptionals.File.Value().(*os.File)

0 commit comments

Comments
 (0)