xref: /Universal-ctags/Units/parser-openapi.r/swagger.d/input.yaml (revision 872c6acf0cdeac72f975554204ecf165dbaf9071)
1swagger: '2.0'
2info:
3    description: test
4    title: test
5    version: '1.0'
6host: example.com
7
8paths:
9    /sample/path:
10        post:
11            description: test
12            responses:
13              200:
14                description: xxx
15
16    /sample/other/path:
17        get:
18            description: smth
19            responses:
20              200:
21                description: xxx
22
23definitions:
24    PolymorphicString:
25        type: object
26        required:
27          - type
28          - value
29        additionalProperties: false
30        properties:
31            type:
32                type: string
33            value:
34                type: string
35
36    PolymorphicInteger:
37        type: object
38        required:
39          - type
40          - value
41        additionalProperties: false
42        properties:
43            type:
44                type: string
45            value:
46                type: integer
47
48parameters:
49    Param1:
50        name: test1
51        in: query
52        type: boolean
53
54    Param2:
55        name: test2
56        in: query
57        type: boolean
58
59responses:
60    Response1:
61        description: aaa
62
63    Response2:
64        description: bbb
65