Skip to content

Commit 8ab9b7d

Browse files
authored
Merge pull request #27 from JaredCE/ignore-header-mocks
create headers to ignore
2 parents 0b3857c + 7cee059 commit 8ab9b7d

File tree

3 files changed

+1179
-0
lines changed

3 files changed

+1179
-0
lines changed
Lines changed: 393 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,393 @@
1+
{
2+
"openapi": "3.0.3",
3+
"components": {
4+
"schemas": {
5+
"createPet": {
6+
"type": "object",
7+
"properties": {
8+
"category": {
9+
"type": "object",
10+
"properties": {
11+
"id": {
12+
"type": "integer",
13+
"format": "int64"
14+
},
15+
"name": {
16+
"type": "string"
17+
}
18+
},
19+
"xml": {
20+
"name": "Category"
21+
}
22+
},
23+
"name": {
24+
"type": "string",
25+
"example": "doggie"
26+
},
27+
"photoUrls": {
28+
"type": "array",
29+
"items": {
30+
"type": "string"
31+
},
32+
"xml": {
33+
"name": "photoUrl",
34+
"wrapped": true
35+
}
36+
},
37+
"tags": {
38+
"type": "array",
39+
"items": {
40+
"type": "object",
41+
"properties": {
42+
"id": {
43+
"type": "integer",
44+
"format": "int64"
45+
},
46+
"name": {
47+
"type": "string"
48+
}
49+
},
50+
"xml": {
51+
"name": "Tag"
52+
}
53+
},
54+
"xml": {
55+
"name": "tag",
56+
"wrapped": true
57+
}
58+
},
59+
"status": {
60+
"type": "string",
61+
"description": "pet status in the store",
62+
"enum": ["available", "pending", "sold"]
63+
}
64+
},
65+
"required": ["name", "photoUrls"],
66+
"xml": {
67+
"name": "Pet"
68+
}
69+
},
70+
"createdPet": {
71+
"type": "object",
72+
"properties": {
73+
"id": {
74+
"type": "integer",
75+
"format": "int64",
76+
"readOnly": true
77+
}
78+
}
79+
},
80+
"Pet": {
81+
"type": "object",
82+
"properties": {
83+
"id": {
84+
"type": "integer",
85+
"format": "int64",
86+
"readOnly": true
87+
},
88+
"category": {
89+
"type": "object",
90+
"properties": {
91+
"id": {
92+
"type": "integer",
93+
"format": "int64"
94+
},
95+
"name": {
96+
"type": "string"
97+
}
98+
},
99+
"xml": {
100+
"name": "Category"
101+
}
102+
},
103+
"name": {
104+
"type": "string",
105+
"example": "doggie"
106+
},
107+
"photoUrls": {
108+
"type": "array",
109+
"items": {
110+
"type": "string"
111+
},
112+
"xml": {
113+
"name": "photoUrl",
114+
"wrapped": true
115+
}
116+
},
117+
"tags": {
118+
"type": "array",
119+
"items": {
120+
"type": "object",
121+
"properties": {
122+
"id": {
123+
"type": "integer",
124+
"format": "int64"
125+
},
126+
"name": {
127+
"type": "string"
128+
}
129+
},
130+
"xml": {
131+
"name": "Tag"
132+
}
133+
},
134+
"xml": {
135+
"name": "tag",
136+
"wrapped": true
137+
}
138+
},
139+
"status": {
140+
"type": "string",
141+
"description": "pet status in the store",
142+
"enum": ["available", "pending", "sold"]
143+
}
144+
},
145+
"required": ["name", "photoUrls"],
146+
"xml": {
147+
"name": "Pet"
148+
}
149+
},
150+
"PetArray": {
151+
"type": "array",
152+
"items": {
153+
"type": "object",
154+
"properties": {
155+
"id": {
156+
"type": "integer",
157+
"format": "int64",
158+
"readOnly": true
159+
},
160+
"category": {
161+
"type": "object",
162+
"properties": {
163+
"id": {
164+
"type": "integer",
165+
"format": "int64"
166+
},
167+
"name": {
168+
"type": "string"
169+
}
170+
},
171+
"xml": {
172+
"name": "Category"
173+
}
174+
},
175+
"name": {
176+
"type": "string",
177+
"example": "doggie"
178+
},
179+
"photoUrls": {
180+
"type": "array",
181+
"items": {
182+
"type": "string"
183+
},
184+
"xml": {
185+
"name": "photoUrl",
186+
"wrapped": true
187+
}
188+
},
189+
"tags": {
190+
"type": "array",
191+
"items": {
192+
"type": "object",
193+
"properties": {
194+
"id": {
195+
"type": "integer",
196+
"format": "int64"
197+
},
198+
"name": {
199+
"type": "string"
200+
}
201+
},
202+
"xml": {
203+
"name": "Tag"
204+
}
205+
},
206+
"xml": {
207+
"name": "tag",
208+
"wrapped": true
209+
}
210+
},
211+
"status": {
212+
"type": "string",
213+
"description": "pet status in the store",
214+
"enum": ["available", "pending", "sold"]
215+
}
216+
},
217+
"required": ["name", "photoUrls"],
218+
"xml": {
219+
"name": "Pet"
220+
}
221+
}
222+
},
223+
"PetForm": {
224+
"type": "object",
225+
"properties": {
226+
"name": {
227+
"type": "string",
228+
"description": "Updated name of the pet"
229+
},
230+
"status": {
231+
"type": "string",
232+
"description": "Updated status of the pet"
233+
}
234+
}
235+
},
236+
"UploadedFile": {
237+
"type": "object",
238+
"properties": {
239+
"code": {
240+
"type": "integer",
241+
"format": "int32"
242+
},
243+
"type": {
244+
"type": "string"
245+
},
246+
"message": {
247+
"type": "string"
248+
}
249+
}
250+
},
251+
"UploadForm": {
252+
"type": "string",
253+
"format": "binary"
254+
},
255+
"tags": {
256+
"type": "array",
257+
"items": {
258+
"type": "string"
259+
}
260+
},
261+
"petId": {
262+
"type": "integer",
263+
"format": "int64"
264+
},
265+
"api_key": {
266+
"type": "string"
267+
}
268+
},
269+
"securitySchemes": {
270+
"Authorization": {
271+
"type": "apiKey",
272+
"name": "Authorization",
273+
"in": "header"
274+
}
275+
}
276+
},
277+
"info": {
278+
"title": "Swagger Petstore",
279+
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.\n",
280+
"version": "1.0.0",
281+
"termsOfService": "http://swagger.io/terms/",
282+
"contact": {
283+
"name": "",
284+
"email": "apiteam@swagger.io"
285+
},
286+
"license": {
287+
"name": "Apache 2.0",
288+
"url": "http://www.apache.org/licenses/LICENSE-2.0.html"
289+
}
290+
},
291+
"security": [
292+
{
293+
"Authorization": []
294+
}
295+
],
296+
"paths": {
297+
"/pet/{petId}": {
298+
"get": {
299+
"summary": "Find pet by ID",
300+
"description": "Returns a single pet",
301+
"operationId": "getPetById",
302+
"parameters": [
303+
{
304+
"name": "petId",
305+
"in": "path",
306+
"description": "ID of pet to return",
307+
"required": true,
308+
"schema": {
309+
"$ref": "#/components/schemas/petId"
310+
}
311+
},
312+
{
313+
"name": "x-simple",
314+
"in": "header",
315+
"required": true,
316+
"explode": false,
317+
"schema": {
318+
"type": "string"
319+
}
320+
},
321+
{
322+
"name": "Accept",
323+
"in": "header",
324+
"required": true,
325+
"explode": false,
326+
"style": "matrix",
327+
"schema": {
328+
"type": "string"
329+
}
330+
}
331+
],
332+
"tags": ["pet"],
333+
"security": [
334+
{
335+
"Authorization": []
336+
}
337+
],
338+
"responses": {
339+
"200": {
340+
"description": "successful operation",
341+
"content": {
342+
"application/json": {
343+
"schema": {
344+
"$ref": "#/components/schemas/Pet"
345+
}
346+
}
347+
},
348+
"headers": {}
349+
},
350+
"400": {
351+
"description": "Invalid ID supplied",
352+
"headers": {}
353+
},
354+
"404": {
355+
"description": "Pet not found",
356+
"headers": {}
357+
}
358+
}
359+
}
360+
}
361+
},
362+
"servers": [
363+
{
364+
"url": "http://petstore.swagger.io/v2"
365+
}
366+
],
367+
"tags": [
368+
{
369+
"name": "pet",
370+
"description": "Everything about your Pets",
371+
"externalDocs": {
372+
"url": "http://swagger.io",
373+
"description": "Find out more"
374+
}
375+
},
376+
{
377+
"name": "store",
378+
"description": "Access to Petstore orders"
379+
},
380+
{
381+
"name": "user",
382+
"description": "Operations about user",
383+
"externalDocs": {
384+
"description": "Find out more about our store",
385+
"url": "http://swagger.ios"
386+
}
387+
}
388+
],
389+
"externalDocs": {
390+
"description": "Find out more about Swagger",
391+
"url": "http://swagger.io"
392+
}
393+
}

0 commit comments

Comments
 (0)