File: fixture-pointers.yaml

package info (click to toggle)
golang-github-go-openapi-analysis 0.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,548 kB
  • sloc: makefile: 4
file content (196 lines) | stat: -rw-r--r-- 4,626 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
---
swagger: '2.0'
info:
  version: '0.1.0'
  title: JSON pointers

parameters:
  someParam:
    name: some
    in: query
    type: string
  bodyParam:
    name: some
    in: body
    schema:
      $ref: '#/responses/notFound/schema'
  remoteParam:
    name: some
    in: body
    schema:
      $ref: 'remote.yaml#/remotes/u64'

responses:
  notFound:
    description: 'Not Found'
    schema:
      $ref: '#/definitions/notFound'
  funnyResponse:
    description: ok
    schema:
      $ref: '#/parameters/bodyParam/schema'
  remoteResponse:
    description: ok
    schema:
      type: object
      properties:
        prop0: 
          $ref: 'remote.yaml#/remotes/u64'

paths:
  /some/where:
    parameters:
    - $ref: '#/parameters/someParam'
    get:
      parameters:
      - $ref: '#/parameters/bodyParam' 
      - name: other
        in: query
        type: string
      responses:
        default:
          $ref: '#/responses/notFound'
        404:
          description: ok
          schema:
            $ref: '#/definitions/myResponse'
        200:
          description: 'RecordHolder'
          schema:
            type: object
            properties:
              prop0:
                $ref: '#/definitions/myBody'
    post:
      responses:
        default:
          description: default
          schema:
            $ref: '#/definitions/myDefaultResponse/properties/zzz'
        203:
          description: funny
          schema:
            $ref: '#/responses/funnyResponse/schema'
        204:
          $ref: '#/responses/funnyResponse'
  /some/where/else:
    get:
      responses:
        default:
          description: default
          schema:
            $ref: '#/definitions/notFound'
        200:
          description: ok
          schema:
            $ref: '#/definitions/myDefaultResponse'
  /with/slice/container:
    get:
      responses:
        default:
          description: default
          schema:
            allOf:
            - $ref: 'remote.yaml#/remotes/u64'
            - $ref: 'remote.yaml#/remotes/u32'
            - $ref: '#/definitions/myBody/properties/prop3'
  /with/tuple/container:
    get:
      responses:
        default:
          description: default
          schema:
            type: array
            items:
            - $ref: '#/definitions/myBody/properties/prop2'
            - $ref: '#/definitions/myBody/properties/prop3'
            - $ref: 'remote.yaml#/remotes/i32'
  /with/array/container:
    get:
      responses:
        200:
          description: ok
          schema:
            $ref: '#/definitions/anArray'
        default:
          description: default
          schema:
            type: array
            items:
              $ref: '#/definitions/anArray/items'
  /with/boolable/container:
    get:
      responses:
        200:
          description: ok
          schema:
            type: array
            items:
              - type: integer
              - type: string
            additionalItems:
              $ref: '#/definitions/myBody/properties/prop3'
        default:
          description: default
          schema:
            type: object
            additionalProperties:
              $ref: '#/definitions/myBody/properties/prop3'
  /with/ZcomesFirstInOrder/container:
    get:
      responses:
        200:
          description: ok
          schema:
            type: array
            items:
              - type: integer
              - type: string
            additionalItems:
              $ref: '#/definitions/myBody/properties/prop3'
        203:
          description: ok
          schema:
            $ref: '#/definitions/anExtensible/additionalProperties'
        204:
          description: ok
          schema:
            type: object
            additionalProperties:
              type: object
              additionalProperties:
                $ref: '#/definitions/anExtensible/additionalProperties'
definitions:
  anExtensible:
    type: object
    additionalProperties:
      type: object
      properties:
        addProp1:
          type: string
  anArray:
    type: array
    items:
      type: string
      format: uuid
  notFound:
    type: object
    properties:
      prop1:
        $ref: '#/definitions/myDefaultResponse/properties/zzz'
  myDefaultResponse:
    type: object
    properties:
      zzz:
        type: integer
  myResponse:
    type: object
    additionalProperties:
      $ref: '#/definitions/notFound/properties/prop1'
  myBody:
    type: object
    properties: 
      prop2: 
        type: integer
      prop3:
        $ref: '#/definitions/myDefaultResponse/properties/zzz'