github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1347/fixture-1347.yaml (about)

     1  swagger: '2.0'
     2  info:
     3    title: fixture for issue#1347
     4    version: '1.0.0'
     5  host: localhost
     6  basePath: /
     7  produces:
     8    - application/json
     9  schemes:
    10    - http
    11  paths:
    12    /optional:
    13      get:
    14        operationId: getOptional
    15        parameters:
    16        - name: option1
    17          in: query
    18          type: string
    19          format: hostname
    20          required: false
    21        - name: option2
    22          in: body
    23          required: false
    24          schema:
    25            $ref: '#/definitions/ContainerConfig'
    26        responses:
    27          200:
    28            description: simple type
    29            schema:
    30              type: string
    31              format: hostname
    32          default:
    33            description: option
    34            schema:
    35              $ref: '#/definitions/ContainerConfig'
    36  definitions:
    37    ContainerConfig:
    38      type: object
    39      #required: [config1]
    40      properties:
    41        config1:
    42          type: string
    43          format: hostname