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

     1  swagger: '2.0'
     2  info:
     3    title: fixture for issue#909
     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: notAnOption1
    17          in: query
    18          type: string
    19          format: date-time
    20          required: false
    21        - name: notAnOption2
    22          in: query
    23          type: string
    24          format: uuid
    25          required: false
    26        - name: notAnOption3
    27          in: body
    28          required: false
    29          schema:
    30            $ref: '#/definitions/ContainerConfig'
    31        responses:
    32          200:
    33            description: simple type
    34            schema:
    35              type: string
    36              format: date-time
    37          201:
    38            description: simple type
    39            schema:
    40              type: string
    41              format: uuid
    42          default:
    43            description: schema type
    44            schema:
    45              $ref: '#/definitions/ContainerConfig'
    46  definitions:
    47    ContainerConfig:
    48      type: object
    49      required: [config1]
    50      properties:
    51        config1:
    52          type: string
    53          format: date-time
    54        config2:
    55          type: string
    56          format: uuid