...
1---
2swagger: "2.0"
3info:
4 title: "Load Balancing Service API"
5 description: Play with path parameters and checks
6 version: "20170115"
7
8basePath: /20170115
9
10paths:
11 /loadBalancers/{loadBalancerId}/backendSets:
12 get:
13 summary: "ListBackendSets"
14 tags: ['loadBalancer']
15 description: Lists all backend sets associated with a given load balancer.
16 operationId: "ListBackendSets"
17 # fixed that: Missing parameter in path
18 parameters:
19 - name: loadBalancerId
20 # fixed that: specified in
21 in: path
22 type: string
23 # fixed that: should be required
24 required: true
25 produces:
26 - "application/json"
27 responses:
28 200:
29 description: The list is being retrieved.
30 # fixed that: $ref is forbidden in headers
31 headers:
32 opc-response-id:
33 description: |
34 Unique identifier for the response.
35 type: string
36 /loadBalancers/{aLotOfLoadBalancerIds}/backendSets:
37 get:
38 summary: "ERROR"
39 tags: ['loadBalancer']
40 description: Triggers an invalid spec check
41 operationId: "ListALotOfBackendSets"
42 # fixed that: Missing parameter in path
43 parameters:
44 # Error here: parameter don't match
45 - name: aLotOfLoadBalancerId
46 type: string
47 # fixed that: should be required
48 required: true
49 produces:
50 - "application/json"
51 responses:
52 200:
53 description: The list is being retrieved.
54 # fixed that: $ref is forbidden in headers
55 headers:
56 opc-response-id:
57 description: |
58 Unique identifier for the response.
59 type: string
60 # This one should give a warning
61 /othercheck/{{sid}/warnMe:
62 get:
63 parameters:
64 - name: sid
65 type: string
66 in: path
67 required: true
68 produces:
69 - "application/json"
70 responses:
71 200:
72 # This one also
73 /othercheck/{sid }/warnMe:
74 get:
75 parameters:
76 - name: sid
77 type: string
78 in: path
79 required: true
80 produces:
81 - "application/json"
82 responses:
83 200:
84 # This one fails
85 /othercheck/{si/d}warnMe:
86 get:
87 parameters:
88 - name: sid
89 # fixed this
90 in: path
91 type: string
92 required: true
93 produces:
94 - "application/json"
95 responses:
96 200:
View as plain text