Skip to content

Commit 30bfef4

Browse files
committed
update samples
1 parent 4b4fe18 commit 30bfef4

6 files changed

Lines changed: 25 additions & 0 deletions

File tree

samples/client/others/java/restclient-sealedInterface/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ components:
8181
items:
8282
$ref: "#/components/schemas/FooRefOrValue"
8383
type: array
84+
default: null
8485
description: Success
8586
schemas:
8687
Addressable:

samples/client/others/java/resttemplate-list-schema-validation/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ paths:
1818
pattern: "^[a-zA-Z0-9]$"
1919
type: string
2020
type: array
21+
default: null
2122
style: simple
2223
responses:
2324
"200":

samples/client/others/java/webclient-sealedInterface_3_1/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ components:
8181
items:
8282
$ref: "#/components/schemas/FooRefOrValue"
8383
type: array
84+
default: null
8485
description: Success
8586
schemas:
8687
Addressable:

samples/client/petstore/java/okhttp-gson-3.1/api/openapi.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ paths:
104104
- sold
105105
type: string
106106
type: array
107+
default: null
107108
style: form
108109
responses:
109110
"200":
@@ -113,11 +114,13 @@ paths:
113114
items:
114115
$ref: "#/components/schemas/Pet"
115116
type: array
117+
default: null
116118
application/json:
117119
schema:
118120
items:
119121
$ref: "#/components/schemas/Pet"
120122
type: array
123+
default: null
121124
description: successful operation
122125
"400":
123126
description: Invalid status value
@@ -146,6 +149,7 @@ paths:
146149
items:
147150
type: string
148151
type: array
152+
default: null
149153
style: form
150154
responses:
151155
"200":
@@ -155,11 +159,13 @@ paths:
155159
items:
156160
$ref: "#/components/schemas/Pet"
157161
type: array
162+
default: null
158163
application/json:
159164
schema:
160165
items:
161166
$ref: "#/components/schemas/Pet"
162167
type: array
168+
default: null
163169
description: successful operation
164170
"400":
165171
description: Invalid tag value
@@ -770,6 +776,7 @@ paths:
770776
items:
771777
$ref: "#/components/schemas/CodesEnum"
772778
type: array
779+
default: null
773780
style: form
774781
responses:
775782
"200":
@@ -822,6 +829,7 @@ paths:
822829
nullable: true
823830
nullable: true
824831
type: array
832+
default: null
825833
description: ""
826834
tags:
827835
- fake
@@ -866,6 +874,7 @@ components:
866874
items:
867875
$ref: "#/components/schemas/User"
868876
type: array
877+
default: null
869878
description: List of user object
870879
required: true
871880
Pet:
@@ -1023,13 +1032,15 @@ components:
10231032
xml:
10241033
name: photoUrl
10251034
wrapped: true
1035+
default: null
10261036
tags:
10271037
items:
10281038
$ref: "#/components/schemas/Tag"
10291039
type: array
10301040
xml:
10311041
name: tag
10321042
wrapped: true
1043+
default: null
10331044
status:
10341045
deprecated: true
10351046
description: pet status in the store
@@ -1103,13 +1114,15 @@ components:
11031114
items:
11041115
type: string
11051116
type: array
1117+
default: null
11061118
ref_array_prefix_items:
11071119
description: |
11081120
An item that was added to the queue.
11091121
items: {}
11101122
maxItems: 5
11111123
minItems: 3
11121124
type: array
1125+
default: null
11131126
HTTPValidationError:
11141127
properties: {}
11151128
title: HTTPValidationError
@@ -1121,6 +1134,7 @@ components:
11211134
maxItems: 5
11221135
minItems: 3
11231136
type: array
1137+
default: null
11241138
circular_reference_1:
11251139
properties:
11261140
prop1:
@@ -1139,14 +1153,17 @@ components:
11391153
items:
11401154
$ref: "#/components/schemas/Tag"
11411155
type: array
1156+
default: null
11421157
arrayFooTwo:
11431158
items:
11441159
$ref: "#/components/schemas/Tag"
11451160
type: array
1161+
default: null
11461162
arrayFooThree:
11471163
items:
11481164
$ref: "#/components/schemas/Tag"
11491165
type: array
1166+
default: null
11501167
CodesEnum:
11511168
enum:
11521169
- Code 1
@@ -1159,6 +1176,7 @@ components:
11591176
items:
11601177
type: string
11611178
type: array
1179+
default: null
11621180
required:
11631181
- arrayOfStrings
11641182
AllOfSimpleModel:
@@ -1169,6 +1187,7 @@ components:
11691187
SelfReference:
11701188
items: {}
11711189
type: array
1190+
default: null
11721191
SelfReferenceOneOf:
11731192
oneOf:
11741193
- type: string
@@ -1213,6 +1232,7 @@ components:
12131232
- items:
12141233
type: string
12151234
type: array
1235+
default: null
12161236
_fake_webhooks_sources_deleted_post_request_event:
12171237
properties:
12181238
event_id:

samples/server/petstore/rust-server-deprecated/output/openapi-v3/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ components:
815815
nullableWithNullDefault:
816816
nullable: true
817817
type: string
818+
default: null
818819
nullableWithPresentDefault:
819820
default: default
820821
nullable: true

samples/server/petstore/rust-server/output/openapi-v3/api/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ components:
815815
nullableWithNullDefault:
816816
nullable: true
817817
type: string
818+
default: null
818819
nullableWithPresentDefault:
819820
default: default
820821
nullable: true

0 commit comments

Comments
 (0)