...
1swagger: '2.0'
2info:
3 description: Validation keyword type mismatch
4 version: 0.0.1
5 title: test
6paths:
7 /test/{id}/string:
8 get:
9 parameters:
10 - name: id
11 in: path
12 required: true
13 type: string
14 minimum: 1
15 maximum: 5
16 multipleOf: 33
17 responses:
18 '200':
19 description: successful operation
20 '500':
21 description: Operation error
22
23 /test/{id}/integer:
24 get:
25 parameters:
26 - name: id
27 in: path
28 required: true
29 type: integer
30 minItems: 1
31 maxItems: 5
32 uniqueItems: true
33 responses:
34 '200':
35 description: successful operation
36 '500':
37 description: Operation error
38
39 /test/{id}/array:
40 get:
41 parameters:
42 - name: id
43 in: path
44 required: true
45 type: array
46 minLength: 1
47 maxLength: 5
48 responses:
49 '200':
50 description: successful operation
51 '500':
52 description: Operation error
View as plain text