Skip to content

Commit 7e0a1c7

Browse files
committed
added temp.yaml for testing
1 parent 32425bc commit 7e0a1c7

File tree

1 file changed

+67
-18
lines changed

1 file changed

+67
-18
lines changed

docs/specs/temp.yaml

Lines changed: 67 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,78 @@
1-
openapi: "3.0.2"
2-
info:
3-
title: Recursive
4-
version: 0.0.1
1+
openapi: 3.0.0
2+
3+
tags:
4+
- name: bugreport
55

66
paths:
7-
/somepath:
7+
"/this/isBroken":
88
get:
9+
operationId: thisIsBrokenGet
10+
tags:
11+
- bugreport
12+
summary: thisIsBroken example
913
responses:
10-
'200':
11-
description: OK
14+
200:
15+
description: successful operation
1216
content:
1317
application/json:
1418
schema:
15-
allOf:
16-
- $ref: '#/components/schemas/Article'
17-
- required: [ foo ]
19+
$ref: "#/components/schemas/BrokenClass"
20+
"/this/isFine":
21+
get:
22+
operationId: thisIsFineGet
23+
tags:
24+
- bugreport
25+
summary: thisIsFine example
26+
responses:
27+
200:
28+
description: successful operation
29+
content:
30+
application/json:
31+
schema:
32+
$ref: "#/components/schemas/FineClass"
33+
1834
components:
1935
schemas:
20-
Article:
36+
BrokenNestedObject:
37+
type: object
38+
properties:
39+
first:
40+
type: integer
41+
format: int32
42+
second:
43+
type: integer
44+
format: int32
45+
required:
46+
- first
47+
- second
48+
example:
49+
first: 123
50+
second: 456
51+
BrokenClass:
52+
type: object
53+
properties:
54+
brokenNestedObject:
55+
$ref: '#/components/schemas/BrokenNestedObject'
56+
required:
57+
- brokenNestedObject
58+
FineNestedObject:
59+
type: object
60+
properties:
61+
first:
62+
type: integer
63+
format: int32
64+
example: 123
65+
second:
66+
type: integer
67+
format: int32
68+
example: 456
69+
required:
70+
- first
71+
- second
72+
FineClass:
2173
type: object
2274
properties:
23-
similar:
24-
allOf:
25-
- $ref: '#/components/schemas/Article'
26-
- required: [ bar ]
27-
anyOf:
28-
- required: [ foo ]
29-
- required: [ bar ]
75+
fineNestedObject:
76+
$ref: '#/components/schemas/FineNestedObject'
77+
required:
78+
- fineNestedObject

0 commit comments

Comments
 (0)