...
1{
2 "input": {
3 "swagger": "2.0",
4 "info": {
5 "version": "1.0",
6 "title": "Continue On Error"
7 },
8 "paths": {
9 "/todos": {
10 "get": {
11 "responses": {
12 "200": {
13 "description": "List Todos",
14 "schema": {
15 "type": "array",
16 "items": {
17 "$ref": "#/definitions/todo-full"
18 }
19 }
20 },
21 "404": {
22 "$ref": "#/responses/404"
23 }
24 }
25 }
26 }
27 },
28 "definitions": {
29 "todo-partial": {
30 "type": "object",
31 "properties": {
32 "name": {
33 "type": "string"
34 },
35 "completed": {
36 "type": "boolean"
37 }
38 }
39 },
40 "todo-full": {
41 "allOf": [
42 {
43 "$ref": "#/definitions/todo-partial"
44 },
45 {
46 "type": "object",
47 "properties": {
48 "id": {
49 "type": "integer"
50 },
51 "completed_at": {
52 "type": "string"
53 },
54 "created_at": {
55 "type": "string"
56 },
57 "updated_at": {
58 "type": "string"
59 }
60 }
61 }
62 ]
63 }
64 }
65 },
66 "expected": {
67 "swagger": "2.0",
68 "info": {
69 "title": "Continue On Error",
70 "version": "1.0"
71 },
72 "paths": {
73 "/todos": {
74 "get": {
75 "responses": {
76 "200": {
77 "description": "List Todos",
78 "schema": {
79 "type": "array",
80 "items": {
81 "allOf": [
82 {
83 "type": "object",
84 "properties": {
85 "completed": {
86 "type": "boolean"
87 },
88 "name": {
89 "type": "string"
90 }
91 }
92 },
93 {
94 "type": "object",
95 "properties": {
96 "completed_at": {
97 "type": "string"
98 },
99 "created_at": {
100 "type": "string"
101 },
102 "id": {
103 "type": "integer"
104 },
105 "updated_at": {
106 "type": "string"
107 }
108 }
109 }
110 ]
111 }
112 }
113 },
114 "404": {}
115 }
116 }
117 }
118 },
119 "definitions": {
120 "todo-full": {
121 "allOf": [
122 {
123 "type": "object",
124 "properties": {
125 "completed": {
126 "type": "boolean"
127 },
128 "name": {
129 "type": "string"
130 }
131 }
132 },
133 {
134 "type": "object",
135 "properties": {
136 "completed_at": {
137 "type": "string"
138 },
139 "created_at": {
140 "type": "string"
141 },
142 "id": {
143 "type": "integer"
144 },
145 "updated_at": {
146 "type": "string"
147 }
148 }
149 }
150 ]
151 },
152 "todo-partial": {
153 "type": "object",
154 "properties": {
155 "completed": {
156 "type": "boolean"
157 },
158 "name": {
159 "type": "string"
160 }
161 }
162 }
163 }
164 }
165}
View as plain text