github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1437/fixture-1437.yaml (about) 1 swagger: '2.0' 2 info: 3 version: 0.0.0 4 title: 'Enum' 5 description: | 6 Test simple format generation 7 contact: 8 name: API Support 9 url: http://www.example.com 10 email: contact@github.com 11 consumes: 12 - application/json 13 produces: 14 - application/json 15 definitions: 16 aDate: 17 type: string 18 format: date 19 aTime: 20 type: string 21 format: datetime 22 aUri: 23 type: string 24 format: uri 25 aUUID: 26 type: string 27 format: uuid 28 aListOfUUIDs: 29 type: array 30 items: 31 type: string 32 format: uuid 33 aListOfDates: 34 type: array 35 items: 36 type: string 37 format: date 38 aSetOfUUIDs: 39 type: array 40 minItems: 5 41 items: 42 $ref: '#/definitions/aUUID' 43 aSetOfDates: 44 type: array 45 minItems: 10 46 items: 47 $ref: '#/definitions/aDate' 48 uuEncoded: 49 type: string 50 format: byte 51 nonregIoReader: 52 type: string 53 format: binary 54 #nonregIoReaderValid: 55 # type: string 56 # format: binary 57 # minLength: 10 #<- this generates failed code 58 myObject: 59 type: object 60 properties: 61 thisUUID: 62 $ref: '#/definitions/aUUID' 63 thisListOfDates: 64 $ref: '#/definitions/aListOfDates' #<- there is still (another) a bug to validate this 65 thisIoReader: 66 $ref: '#/definitions/nonregIoReader' 67 paths: 68 /fixture: 69 get: 70 responses: 71 200: 72 description: OK