cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft4/minProperties.json (about)

     1  [
     2  	{
     3  		"description": "minProperties validation",
     4  		"schema": {
     5  			"minProperties": 1
     6  		},
     7  		"tests": [
     8  			{
     9  				"description": "longer is valid",
    10  				"data": {
    11  					"foo": 1,
    12  					"bar": 2
    13  				},
    14  				"valid": true
    15  			},
    16  			{
    17  				"description": "exact length is valid",
    18  				"data": {
    19  					"foo": 1
    20  				},
    21  				"valid": true
    22  			},
    23  			{
    24  				"description": "too short is invalid",
    25  				"data": {},
    26  				"valid": false
    27  			},
    28  			{
    29  				"description": "ignores arrays",
    30  				"data": [],
    31  				"valid": true
    32  			},
    33  			{
    34  				"description": "ignores strings",
    35  				"data": "",
    36  				"valid": true
    37  			},
    38  			{
    39  				"description": "ignores other non-objects",
    40  				"data": 12,
    41  				"valid": true
    42  			}
    43  		]
    44  	}
    45  ]