...
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 type: string
21 in: path
22 # fixed that: should be required
23 required: true
24 produces:
25 - "application/json"
26 responses:
27 200:
28 description: The list is being retrieved.
29 # fixed that: $ref is forbidden in headers
30 headers:
31 opc-response-id:
32 description: |
33 Unique identifier for the response.
34 type: string
35 /loadBalancers/{aLotOfLoadBalancerIds}/backendSets:
36 get:
37 summary: "ERROR"
38 tags: ['loadBalancer']
39 description: Triggers an invalid spec check
40 operationId: "ListALotOfBackendSets"
41 # fixed that: Missing parameter in path
42 parameters:
43 # Fixed that error here: parameter don't match
44 - name: aLotOfLoadBalancerIds
45 in: path
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 # Fixed this: stupid, but what if I explictly want a { in name...
65 # Still an error since we add " in the name string
66 - name: '{sid'
67 in: path
68 type: string
69 required: true
70 produces:
71 - "application/json"
72 responses:
73 200:
74 # This one also
75 /othercheck/{sid }/warnMe:
76 get:
77 parameters:
78 # Fixed this: stupid, but what if I explictly want a space in name...
79 # Still an error since we add " in the name string
80 - name: 'sid '
81 in: path
82 type: string
83 required: true
84 produces:
85 - "application/json"
86 responses:
87 200:
88 # This one fails
89 /othercheck/{si/d}warnMe:
90 get:
91 parameters:
92 - name: sid
93 in: path
94 type: string
95 required: true
96 produces:
97 - "application/json"
98 responses:
99 200:
View as plain text