cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/maxItems.json (about) 1 [ 2 { 3 "description": "maxItems validation", 4 "schema": { 5 "maxItems": 2 6 }, 7 "tests": [ 8 { 9 "description": "shorter is valid", 10 "data": [ 11 1 12 ], 13 "valid": true 14 }, 15 { 16 "description": "exact length is valid", 17 "data": [ 18 1, 19 2 20 ], 21 "valid": true 22 }, 23 { 24 "description": "too long is invalid", 25 "data": [ 26 1, 27 2, 28 3 29 ], 30 "valid": false 31 }, 32 { 33 "description": "ignores non-arrays", 34 "data": "foobar", 35 "valid": true 36 } 37 ] 38 }, 39 { 40 "description": "maxItems validation with a decimal", 41 "schema": { 42 "maxItems": 2.0 43 }, 44 "tests": [ 45 { 46 "description": "shorter is valid", 47 "data": [ 48 1 49 ], 50 "valid": true 51 }, 52 { 53 "description": "too long is invalid", 54 "data": [ 55 1, 56 2, 57 3 58 ], 59 "valid": false 60 } 61 ] 62 } 63 ]