Server : LiteSpeed System : Linux in-mum-web1949.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 User : u595547767 ( 595547767) PHP Version : 7.4.33 Disable Function : NONE Directory : /opt/go/pkg/mod/github.com/go-openapi/validate@v0.24.0/fixtures/validation/ |
---
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: