Files
libopenapi/test_specs/circular-tests.yaml
Dave Shanley 5d07da52b1 Fixed resolver to correctly identify polymorphic circular references.
Both stripe and k8s are correctly identified now.
2022-08-23 14:57:32 -04:00

59 lines
1.2 KiB
YAML

paths:
/burgers:
post:
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Nine'
components:
schemas:
One:
description: "test one"
properties:
things:
"$ref": "#/components/schemas/Two"
Two:
description: "test two"
properties:
testThing:
"$ref": "#/components/schemas/One"
anyOf:
- "$ref": "#/components/schemas/Four"
Three:
description: "test three"
properties:
tester:
"$ref": "#/components/schemas/Four"
bester:
"$ref": "#/components/schemas/Seven"
yester:
"$ref": "#/components/schemas/Seven"
Four:
desription: "test four"
properties:
lemons:
"$ref": "#/components/schemas/Nine"
Five:
properties:
rice:
"$ref": "#/components/schemas/Six"
Six:
properties:
mints:
"$ref": "#/components/schemas/Nine"
Seven:
properties:
wow:
"$ref": "#/components/schemas/Three"
Nine:
description: done.
Ten:
properties:
yeah:
"$ref": "#/components/schemas/Ten"