github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/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 collectionFormat: tsv 48 items: 49 type: array 50 collectionFormat: pipes 51 uniqueItems: true 52 minItems: 3 53 items: 54 type: string 55 format: uuid 56 enum: [ "a", "b", "c" ] 57 - name: isAnOptionalHeader 58 in: header 59 type: array 60 collectionFormat: pipes 61 required: false 62 uniqueItems: true 63 items: 64 type: array 65 items: 66 type: string 67 format: uuid 68 - name: notAnOption3 69 in: body 70 required: true 71 schema: 72 $ref: '#/definitions/ContainerConfig' 73 responses: 74 200: 75 description: simple type 76 schema: 77 type: string 78 format: date-time 79 201: 80 description: simple type 81 schema: 82 type: string 83 format: uuid 84 default: 85 description: schema type 86 schema: 87 $ref: '#/definitions/ContainerConfig' 88 definitions: 89 ContainerConfig: 90 type: object 91 required: [config1] 92 properties: 93 config1: 94 type: string 95 format: date-time 96 config2: 97 type: string 98 format: uuid