File tree Expand file tree Collapse file tree 1 file changed +67
-18
lines changed Expand file tree Collapse file tree 1 file changed +67
-18
lines changed Original file line number Diff line number Diff line change 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
5
5
6
6
paths :
7
- /somepath :
7
+ " /this/isBroken " :
8
8
get :
9
+ operationId : thisIsBrokenGet
10
+ tags :
11
+ - bugreport
12
+ summary : thisIsBroken example
9
13
responses :
10
- ' 200 ' :
11
- description : OK
14
+ 200 :
15
+ description : successful operation
12
16
content :
13
17
application/json :
14
18
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
+
18
34
components :
19
35
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 :
21
73
type : object
22
74
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
You can’t perform that action at this time.
0 commit comments