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