...
1---
2swagger: "2.0"
3info:
4 version: "0.1.0"
5 title: Definition analysis
6parameters:
7 someParam:
8 name: someParam
9 in: body
10 schema:
11 type: object
12responses:
13 someResponse:
14 schema:
15 type: object
16paths:
17 "/some/where/{id}":
18 parameters:
19 - name: id
20 in: path
21 type: integer
22 format: int32
23 - name: bodyId
24 in: body
25 schema:
26 type: object
27 get:
28 parameters:
29 - name: limit
30 in: query
31 type: integer
32 format: int32
33 required: false
34 - name: body
35 in: body
36 schema:
37 type: object
38 responses:
39 default:
40 schema:
41 type: object
42 200:
43 schema:
44 type: object
45definitions:
46 tag:
47 type: object
48 properties:
49 id:
50 type: integer
51 format: int64
52 value:
53 type: string
54 definitions:
55 category:
56 type: object
57 properties:
58 id:
59 type: integer
60 format: int32
61 value:
62 type: string
63 withAdditionalProps:
64 type: object
65 additionalProperties:
66 type: boolean
67 withAdditionalItems:
68 type: array
69 items:
70 - type: string
71 - type: bool
72 additionalItems:
73 type: integer
74 format: int32
75 withNot:
76 type: object
77 not:
78 $ref: "#/definitions/tag"
79 withAnyOf:
80 anyOf:
81 - type: object
82 - type: string
83 withOneOf:
84 type: object
85 oneOf:
86 - $ref: "#/definitions/tag"
87 - $ref: "#/definitions/withAdditionalProps"
88 withAllOf:
89 allOf:
90 - type: object
91 - type: string
View as plain text