cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft4/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  ]