github.com/emreu/go-swagger@v0.22.1/fixtures/bugs/909/fixture-909-5.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            items:
    24              type: string
    25              format: date-time
    26        - name: isAnOptionalHeader
    27          in: header
    28          type: array
    29          collectionFormat: tsv
    30          required: false
    31          items:
    32            type: array
    33            items:
    34              type: string
    35              format: uuid
    36        - name: notAnOption3
    37          in: body
    38          required: true
    39          schema:
    40            $ref: '#/definitions/ContainerConfig'
    41        responses:
    42          200:
    43            description: simple type
    44            headers:
    45              x-isAnOptionalHeader0:
    46                type: string
    47                format: date-time
    48              x-isAnOptionalHeader1:
    49                type: array
    50                collectionFormat: tsv
    51                minItems: 3
    52                items:
    53                  type: string
    54                  format: date-time
    55              x-isAnOptionalHeader2:
    56                type: array
    57                uniqueItems: true
    58                items:
    59                  type: array
    60                  collectionFormat: pipes
    61                  items: 
    62                    type: integer
    63                    format: int32
    64                    minimum: 20
    65              x-isAnOptionalHeader3:
    66                type: array
    67                uniqueItems: true
    68                # defaults to csv
    69                #collectionFormat: csv
    70                items:
    71                  type: array
    72                  collectionFormat: pipes
    73                  items: 
    74                    type: array
    75                    items:
    76                      collectionFormat: tsv
    77                      type: string
    78                      format: uuid
    79            schema:
    80              type: string
    81              format: hostname
    82          201:
    83            description: simple type
    84            schema:
    85              type: string
    86              format: uuid
    87          default:
    88            description: schema type
    89            schema:
    90              $ref: '#/definitions/ContainerConfig'
    91  definitions:
    92    ContainerConfig:
    93      type: object
    94      required: [config1]
    95      properties:
    96        config1:
    97          type: string
    98          format: date-time
    99        config2:
   100          type: string
   101          format: uuid