...
1---
2swagger: "2.0"
3info:
4 version: "0.1.0"
5 title: issue#859. Reference validation
6paths:
7 /:
8 post:
9 parameters:
10 - $ref: "#/parameters/rateLimit"
11 responses:
12 200:
13 description: "Success"
14 get:
15 parameters:
16 - name: myparam
17 in: body
18 schema:
19 $ref: '#/definitions/myparam'
20 responses:
21 default:
22 description: the record
23 schema:
24 $ref: "#/definitions/record"
25 404:
26 $ref: "#/responses/notFound"
27 200:
28 description: "Success"
29 schema:
30 $ref: "#definitions/myoutput"
31
32parameters:
33 rateLimit:
34 name: X-Rate-Limit
35 in: header
36 type: integer
37 format: int32
38
39responses:
40 notFound:
41 description: Not found
42 schema:
43 $ref: "#/definitions/record"
44
45definitions:
46 record:
47 type: object
48 properties:
49 createdAt:
50 type: string
51 format: date-time
52 myparam:
53 type: string
54 myoutput:
55 type: string
View as plain text