github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1571/json-data/fixture-simple-tuple.json (about) 1 { 2 "definitions": { 3 "trueTupleThing": { 4 "type": "array", 5 "additionalItems": true, 6 "items": [ 7 { 8 "type": "number" 9 }, 10 { 11 "type": "string" 12 } 13 ] 14 }, 15 "falseTupleThing": { 16 "type": "array", 17 "additionalItems": false, 18 "items": [ 19 { 20 "type": "number" 21 }, 22 { 23 "type": "string" 24 } 25 ] 26 }, 27 "tupleThing": { 28 "type": "array", 29 "items": [ 30 { 31 "type": "string", 32 "enum": [ 33 "CONST1", 34 "CONST2" 35 ] 36 }, 37 { 38 "type": "string", 39 "enum": [ 40 "CONST3", 41 "CONST4" 42 ] 43 } 44 ], 45 "enum": [ 46 [ 47 "CONST1", 48 "CONST3" 49 ], 50 [ 51 "CONST2", 52 "CONST4" 53 ] 54 ] 55 }, 56 "tupleThingWithAdditionalItems": { 57 "type": "array", 58 "uniqueItems": true, 59 "items": [ 60 { 61 "type": "string", 62 "enum": [ 63 "CONST5", 64 "CONST6" 65 ] 66 }, 67 { 68 "type": "string", 69 "enum": [ 70 "CONST7", 71 "CONST8" 72 ] 73 } 74 ], 75 "additionalItems": { 76 "type": "integer", 77 "enum": [ 78 1, 79 2 80 ] 81 } 82 } 83 } 84 }