github.com/emreu/go-swagger@v0.22.1/fixtures/bugs/1993/fixture-1993.yaml (about)

     1  consumes:
     2  - application/json
     3  info:
     4    title: Pets
     5    version: 0.1.0
     6  produces:
     7  - application/json
     8  schemes:
     9  - http
    10  swagger: "2.0"
    11  definitions:
    12    House:
    13      type: object
    14      properties:
    15        pet:
    16          $ref: '#/definitions/Pet'
    17      required:
    18      - pet
    19    EmptyHouse:
    20      type: object
    21      properties:
    22        pet:
    23          $ref: '#/definitions/Pet'
    24    Pet:
    25      type: object
    26      discriminator: petType
    27      properties:
    28        name:
    29          type: string
    30        petType:
    31          type: string
    32      required:
    33      - name
    34      - petType
    35    Dog:
    36      type: object
    37      description: A representation of a dog
    38      allOf:
    39      - $ref: '#/definitions/Pet'
    40      - properties:
    41          packSize:
    42            type: integer
    43            format: int32
    44            description: the size of the pack the dog is from
    45            default: 0
    46            minimum: 0
    47        required:
    48        - packSize
    49  paths:
    50    "/houses":
    51      post:
    52        summary: Creates a house
    53        produces:
    54          - application/json
    55        operationId: postHouse
    56        parameters:
    57          - name: body
    58            in: body
    59            schema:
    60              $ref: "#/definitions/House"
    61        responses:
    62          '200':
    63            description: House response
    64          default:
    65            description: unexpected error
    66    "/emptyhouses":
    67      post:
    68        summary: Creates a house
    69        produces:
    70          - application/json
    71        operationId: postEmptyHouse
    72        parameters:
    73          - name: body
    74            in: body
    75            schema:
    76              $ref: "#/definitions/EmptyHouse"
    77        responses:
    78          '200':
    79            description: House response
    80          default:
    81            description: unexpected error