github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1487/fixture-tuple.yaml (about) 1 swagger: '2.0' 2 3 info: 4 version: "1.0.0" 5 title: fixture for tuples and additionalItems 6 description: check different patterns of additionalItems validations or absence thereof 7 produces: 8 - application/json 9 consumes: 10 - application/json 11 paths: 12 /models: 13 get: 14 operationId: modelOp 15 summary: many model variations 16 description: no description 17 tags: 18 - testcgen 19 responses: 20 default: 21 description: Generic Out 22 definitions: 23 comics: 24 type: array 25 items: 26 # no validation expected here 27 - type: string 28 # validation expected here 29 - type: object 30 required: [narrative] 31 properties: 32 narrative: 33 type: string 34 # validation expected here too 35 - type: object 36 properties: 37 marketingBS: 38 type: string 39 # validation expected here 40 - type: object 41 properties: 42 character: 43 type: string 44 pattern: '^[A-Z]+$' 45 author: 46 type: string 47 minLength: 1 48 # validation expected here 49 - type: array 50 items: 51 type: string 52 format: isbn 53 - type: integer 54 classics: 55 type: array 56 items: 57 # no validation here 58 - type: integer 59 # validation here 60 - type: string 61 format: isbn 62 # validation here 63 - $ref: '#/definitions/comics' 64 additionalItems: 65 # validation expected here 66 type: array 67 items: 68 - type: object 69 properties: 70 title: 71 type: string 72 enum: [ 'Les Misérables', 'Bleak House', 'Sherlock Holmes', 'Siddhartha' ] 73 period: 74 type: string 75 - type: array 76 items: 77 type: string 78 format: date 79 - type: object 80 properties: 81 origin: 82 type: string 83 enum: [ print, e-book, collection, museum ] 84 additionalProperties: 85 type: string 86 enum: [ bookshop, amazon, library ] 87 - $ref: '#/definitions/comics'