File: test3-bis-swagger.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 (51 lines) | stat: -rw-r--r-- 896 bytes parent folder | download | duplicates (5)
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
swagger: '2.0'
info:
  version: 0.1.1
  title: test 1
  description: recursively following JSON references
  contact:
    name: Fred

schemes:
  - http

consumes:
  - application/json
produces:
  - application/json

paths:
  /getAll:
    get:
      operationId: getAll
      parameters:
        - name: a
          in: body
          description: max number of results
          schema:
            $ref: '#/definitions/a'
      responses:
        '200':
          description: Success
          schema:
            $ref: '#/definitions/b'
        '201':
          description: Success
          schema:
            $ref: '#/definitions/b'
        '203':
          description: Success
          schema:
            $ref: '#/definitions/c'

definitions:
  a:
    type: string
  b:
    type: array
    items: 
      type: string
  c:
    type: object
    additionalProperties:
      type: integer