...

Text file src/github.com/go-openapi/validate/fixtures/validation/fixture-1243-good.yaml

Documentation: github.com/go-openapi/validate/fixtures/validation

     1---
     2swagger: "2.0"
     3info:
     4  title: "Load Balancing Service API"
     5  description: API for the Load Balancing Service
     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          in: path
    21          type: string
    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

View as plain text