...
1---
2swagger: '2.0'
3info:
4 title: 'fixture for issue #581'
5 version: '1.0'
6 description: |
7 This one just to set a minimum/maximum valid case for non regression.
8 It exersises, for integers:
9 - inline parameters
10 - schema parameters
11 - schema parameters through $ref
12 - schema for response
13 - schema object for response, with object and array
14 - schema for response through $ref
15
16
17produces:
18 - application/json
19paths:
20 /fixture:
21 get:
22 operationId: op1
23 parameters:
24 - name: myid
25 in: body
26 schema:
27 $ref: '#/definitions/myId'
28 responses:
29 200:
30 description: 'response exercising integer boundaries'
31 schema:
32 $ref: '#/definitions/someIds'
33 201:
34 description: 'response exercising integer boundaries'
35 schema:
36 type: integer
37 minimum: 0
38 maximum: 100
39 default: 0
40 401:
41 description: 'response exercising integer boundaries'
42 schema:
43 type: object
44 properties:
45 shortInt:
46 type: integer
47 minimum: 0
48 maximum: 100
49 default: 0
50 shortIntList:
51 type: array
52 items:
53 type: integer
54 minimum: 0
55 maximum: 100
56 default: 0
57
58definitions:
59 myId:
60 type: object
61 properties:
62 smallId:
63 type: integer
64 minimum: 0
65 maximum: 12
66 default: 10
67 format: uint64
68 someIds:
69 type: object
70 properties:
71 smallId:
72 type: integer
73 minimum: 0
74 maximum: 12
75 default: 10
76 format: uint64
77 smallIdList:
78 type: array
79 items:
80 type: integer
81 minimum: 0
82 maximum: 100
83 default: 0
View as plain text