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