github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/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: notAnOption0
    17          in: query
    18          type: string
    19          required: true
    20        - name: notAnOption1
    21          in: query
    22          type: string
    23          format: date-time
    24          required: false
    25        - name: notAnOption2
    26          in: query
    27          type: string
    28          format: uuid
    29          required: false
    30        - name: notAnOption3
    31          in: body
    32          required: false
    33          schema:
    34            $ref: '#/definitions/ContainerConfig'
    35        responses:
    36          200:
    37            description: simple type
    38            schema:
    39              type: string
    40              format: date-time
    41          201:
    42            description: simple type
    43            schema:
    44              type: string
    45              format: uuid
    46          default:
    47            description: schema type
    48            schema:
    49              $ref: '#/definitions/ContainerConfig'
    50  definitions:
    51    ContainerConfig:
    52      type: object
    53      required: [config1]
    54      properties:
    55        config1:
    56          type: string
    57          format: date-time
    58        config2:
    59          type: string
    60          format: uuid