github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/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: header is of a simple type
    44            headers:
    45              x-isAnOptionalHeader0DirtSimple:
    46                description: "header 0 is a plain header"
    47                type: string
    48  
    49              x-isAnOptionalHeader0DirtSimpleInteger:
    50                description: "header 0 is a plain integer header"
    51                type: integer
    52  
    53              x-isAnOptionalHeader0DirtSimpleArray:
    54                description: "header 0 is a plain array of integer header"
    55                type: array
    56                items:
    57                  type: integer
    58  
    59              x-isAnOptionalHeader0:
    60                description: "header 0 is a date-time"
    61                type: string
    62                format: date-time
    63                default: 2018-01-28T23:54:00.000Z
    64  
    65              x-isAnOptionalHeader0Stringer:
    66                description: "header 0Stringer is a uuid"
    67                type: string
    68                format: uuid
    69                default: 524fc6d5-66c6-46f6-90bc-34e0d0139e43
    70  
    71              x-isAnOptionalHeader0Primitive:
    72                description: "header 0Primitive is a primitive"
    73                type: number
    74                format: float
    75                default: 345.55
    76  
    77              x-isAnOptionalHeader1:
    78                description: "header 1 an array of datetimes"
    79                type: array
    80                collectionFormat: tsv
    81                minItems: 3
    82                items:
    83                  type: string
    84                  format: date-time
    85                default:
    86                - 2018-01-28T23:54:00.000Z
    87                - 2018-02-28T23:54:00.000Z
    88                - 2018-03-28T23:54:00.000Z
    89                - 2018-04-28T23:54:00.000Z
    90  
    91              x-isAnOptionalHeader2:
    92                description: "header 2 a nested array of integers"
    93                type: array
    94                uniqueItems: true
    95                items:
    96                  type: array
    97                  collectionFormat: pipes
    98                  items:
    99                    type: integer
   100                    format: int32
   101                    minimum: 20
   102                    default: 21
   103                default:
   104                -
   105                  - 21
   106                  - 22
   107                  - 23
   108                -
   109                  - 31
   110                  - 32
   111                  - 33
   112  
   113              x-isAnOptionalHeader2NoFormat:
   114                description: "header 2NoFormat a nested array of integers"
   115                type: array
   116                uniqueItems: true
   117                collectionFormat: pipes
   118                items:
   119                  type: array
   120                  collectionFormat: tsv
   121                  items:
   122                    type: integer
   123                    minimum: 20
   124                    default: 21
   125                default:
   126                -
   127                  - 21
   128                  - 22
   129                  - 23
   130                -
   131                  - 31
   132                  - 32
   133                  - 33
   134  
   135              x-isAnOptionalHeader3:
   136                description: "header 3 a nested array of uuid"
   137                type: array
   138                uniqueItems: true
   139                # defaults to csv
   140                #collectionFormat: csv
   141                items:
   142                  type: array
   143                  collectionFormat: pipes
   144                  items:
   145                    type: array
   146                    items:
   147                      collectionFormat: tsv
   148                      type: string
   149                      format: uuid
   150                default:
   151                -
   152                  -
   153                    - 524fc6d5-66c6-46f6-90bc-34e0d0139e43
   154                    - c8199a5f-f7ce-4fb1-b8af-082256125e89
   155                  -
   156                    - c8199a5f-f7ce-4fb1-b8af-082256125e89
   157                    - 524fc6d5-66c6-46f6-90bc-34e0d0139e43
   158                -
   159                  -
   160                    - c8199a5f-f7ce-4fb1-b8af-082256125e89
   161                    - 524fc6d5-66c6-46f6-90bc-34e0d0139e43
   162                  -
   163                    - 524fc6d5-66c6-46f6-90bc-34e0d0139e43
   164                    - c8199a5f-f7ce-4fb1-b8af-082256125e89
   165            schema:
   166              type: string
   167              format: hostname
   168              default: "www.example.com"
   169          201:
   170            description: simple type
   171            schema:
   172              type: string
   173              format: uuid
   174              default: c8199a5f-f7ce-4fb1-b8af-082256125e89
   175          default:
   176            description: schema type
   177            headers:
   178              x-isDefaultHeader0:
   179                description: "header 0 is an integer"
   180                type: integer
   181                format: uint32
   182                default: 15
   183  
   184              x-isDefaultHeader1:
   185                description: |
   186                  header 1 an array of simple precision floats.
   187                  This array contains at least 3 elements.
   188  
   189                type: array
   190                collectionFormat: pipes
   191                minItems: 3
   192                items:
   193                  type: number
   194                  format: float
   195                default: [ 14.00, 15, 16 ]
   196            schema:
   197              $ref: '#/definitions/ContainerConfig'
   198  definitions:
   199    ContainerConfig:
   200      type: object
   201      required: [config1]
   202      properties:
   203        config1:
   204          type: string
   205          format: date-time
   206        config2:
   207          type: string
   208          format: uuid