We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcecfdc commit 8ab4f38Copy full SHA for 8ab4f38
1 file changed
modules/openapi-generator/src/test/resources/3_0/oneof_polymorphism_and_inheritance.yaml
@@ -209,6 +209,20 @@ components:
209
properties:
210
length:
211
type: integer
212
+ Animal:
213
+ oneOf:
214
+ - $ref: '#/components/schemas/Dog'
215
+ - $ref: '#/components/schemas/Cat'
216
+ Cat:
217
+ type: object
218
+ properties:
219
+ declawed:
220
+ type: boolean
221
+ Dog:
222
223
224
+ bark:
225
226
227
requestBodies:
228
Foo:
@@ -235,4 +249,4 @@ components:
235
249
schema:
236
250
type: array
237
251
items:
238
- $ref: '#/components/schemas/FooRefOrValue'
252
+ $ref: '#/components/schemas/FooRefOrValue'
0 commit comments