Fixed schemas_test_spec.yaml
@@ -7,6 +7,7 @@ info:
name: MIT
paths:
/test1:
+ get:
operationId: test1
requestBody:
content:
@@ -17,6 +18,7 @@ paths:
default:
description: "OK"
/test2:
+ get:
operationId: test2
responses:
default:
@@ -29,6 +31,7 @@ paths:
- $ref: '#/components/schemas/Person'
- $ref: '#/components/schemas/Citizen'
/test3:
+ get:
operationId: test3
responses:
default:
@@ -39,6 +42,7 @@ paths:
schema:
$ref: '#/components/schemas/PersonComplex'
/test4:
+ get:
operationId: test4
responses:
default:
@@ -48,9 +52,10 @@ paths:
application/json:
schema:
allOf:
- - $ref: '#/paths/~1test1/requestBody/content/application~1json/schema'
+ - $ref: '#/paths/~1test1/get/requestBody/content/application~1json/schema'
- $ref: '#/components/schemas/Citizen'
/test5:
+ get:
operationId: test5
responses:
default:
@@ -61,6 +66,7 @@ paths:
schema:
$ref: 'http://json-schema.org/example/geo.json'
/test6:
+ get:
operationId: test6
responses:
default:
@@ -78,6 +84,7 @@ paths:
required:
- id_card
/test7:
+ get:
operationId: test7
responses:
default:
@@ -88,6 +95,7 @@ paths:
schema:
$ref: '#/components/schemas/PersonRecursive'
/test8:
+ get:
operationId: test8
responses:
default:
@@ -101,13 +109,14 @@ paths:
value:
type: string
parent:
- $ref: '#/paths/~1test8/requestBody/content/application~1json/schema'
+ $ref: '#/paths/~1test8/get/requestBody/content/application~1json/schema'
children:
type: array
items:
- $ref: '#/paths/~1test8/requestBody/content/application~1json/schema' # Self refs!
+ $ref: '#/paths/~1test8/get/requestBody/content/application~1json/schema' # Self refs!
additionalProperties: false
/test9:
+ get:
operationId: test9
responses:
default:
@@ -122,11 +131,11 @@ paths:
- type: object
properties:
parent_card:
- $ref: '#/paths/~1test9/requestBody/content/application~1json/schema'
+ $ref: '#/paths/~1test9/get/requestBody/content/application~1json/schema'
children_cards:
type: array
items:
- $ref: '#/paths/~1test9/requestBody/content/application~1json/schema'
+ $ref: '#/paths/~1test9/get/requestBody/content/application~1json/schema'
components:
