github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/909/fixture-909-3.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: array
    19          collectionFormat: csv
    20          required: true
    21          items:
    22            type: array
    23            collectionFormat: pipes
    24            items:
    25              type: string
    26              format: date-time
    27        - name: isAnOption2
    28          in: query
    29          type: array
    30          collectionFormat: pipes
    31          required: false
    32          items:
    33            type: array
    34            # default collectionFormat: csv
    35            items:
    36              type: string
    37              format: uuid
    38        - name: isAnOption4
    39          in: query
    40          type: array
    41          collectionFormat: csv
    42          required: false
    43          maxItems: 4
    44          items:
    45            type: array
    46            uniqueItems: true
    47            items:
    48              type: array
    49              collectionFormat: pipes
    50              uniqueItems: true
    51              minItems: 3
    52              items:
    53                type: string
    54                format: uuid
    55                enum: [ "a", "b", "c" ]
    56        - name: isAnOptionalHeader
    57          in: header
    58          type: array
    59          collectionFormat: pipes
    60          required: false
    61          uniqueItems: true
    62          items:
    63            type: array
    64            items:
    65              type: string
    66              format: uuid
    67        - name: notAnOption3
    68          in: body
    69          required: true
    70          schema:
    71            $ref: '#/definitions/ContainerConfig'
    72        responses:
    73          200:
    74            description: simple type
    75            schema:
    76              type: string
    77              format: date-time
    78          201:
    79            description: simple type
    80            schema:
    81              type: string
    82              format: uuid
    83          default:
    84            description: schema type
    85            schema:
    86              $ref: '#/definitions/ContainerConfig'
    87  definitions:
    88    ContainerConfig:
    89      type: object
    90      required: [config1]
    91      properties:
    92        config1:
    93          type: string
    94          format: date-time
    95        config2:
    96          type: string
    97          format: uuid