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