...
1---
2swagger: '2.0'
3info:
4 title: 'fixture for issue #581'
5 version: '1.0'
6 description: |
7 Exercise boundary checks for minimum, maximum and multipleOf
8 This provides supplementary test cases not tested in the fixture-581 series
9 - multipleOf
10 - maximum with native type check
11 - minimum with native type check
12
13produces:
14 - application/json
15paths:
16 /fixture:
17 get:
18 operationId: op1
19 parameters:
20 # MultipleOf value not compatible with format
21 # => still performs default value check as float64, and fails
22 - name: param1
23 in: query
24 type: integer
25 format: int32
26 # maxInt32+1
27 multipleOf: 2147483648
28 default: 99
29 # => still performs default value check as float64, and succeeds
30 - name: param2
31 in: query
32 type: integer
33 format: int32
34 # maxInt32+1
35 multipleOf: 2147483648
36 default: 4294967296
37 # MultipleOf. Default value not compatible with format
38 # => still performs default value check as float64, and fails
39 - name: param3
40 in: query
41 type: integer
42 format: int32
43 multipleOf: 10
44 default: 2147483648
45 # MultipleOf. Default value not compatible with format
46 # => still performs default value check as float64, and succeeds
47 - name: param4
48 in: query
49 type: integer
50 format: int32
51 multipleOf: 2
52 default: 2147483648
53 # Maximum. Default value not compatible with format
54 # => still performs default value check as float64, and fails
55 - name: param5
56 in: query
57 type: integer
58 format: int32
59 # maxInt32
60 maximum: 2147483647
61 # maxInt32+1
62 default: 2147483648
63 # Maximum. Default value not compatible with format
64 # => still performs default value check as float64, and succeeds
65 - name: param6
66 in: query
67 type: integer
68 format: uint32
69 # maxInt32
70 maximum: 2147483647
71 # maxInt32+1
72 default: -1
73 # Minimum. Default value not compatible with format
74 # => still performs default value check as float64, and succeeds
75 - name: param7
76 in: query
77 type: integer
78 format: int32
79 # maxInt32
80 minimum: 2147483647
81 # maxInt32+1
82 default: 2147483648
83 # Minimum. Default value not compatible with format
84 # => still performs default value check as float64, and fails
85 - name: param8
86 in: query
87 type: integer
88 format: uint32
89 # maxInt32
90 minimum: 2147483647
91 # maxInt32+1
92 default: -1
93 responses:
94 200:
View as plain text