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