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

     1  [
     2  	{
     3  		"description": "maximum validation",
     4  		"schema": {
     5  			"maximum": 3.0
     6  		},
     7  		"tests": [
     8  			{
     9  				"description": "below the maximum is valid",
    10  				"data": 2.6,
    11  				"valid": true
    12  			},
    13  			{
    14  				"description": "boundary point is valid",
    15  				"data": 3.0,
    16  				"valid": true
    17  			},
    18  			{
    19  				"description": "above the maximum is invalid",
    20  				"data": 3.5,
    21  				"valid": false
    22  			},
    23  			{
    24  				"description": "ignores non-numbers",
    25  				"data": "x",
    26  				"valid": true
    27  			}
    28  		]
    29  	},
    30  	{
    31  		"description": "maximum validation with unsigned integer",
    32  		"schema": {
    33  			"maximum": 300
    34  		},
    35  		"tests": [
    36  			{
    37  				"description": "below the maximum is invalid",
    38  				"data": 299.97,
    39  				"valid": true
    40  			},
    41  			{
    42  				"description": "boundary point integer is valid",
    43  				"data": 300,
    44  				"valid": true
    45  			},
    46  			{
    47  				"description": "boundary point float is valid",
    48  				"data": 300.00,
    49  				"valid": true
    50  			},
    51  			{
    52  				"description": "above the maximum is invalid",
    53  				"data": 300.5,
    54  				"valid": false
    55  			}
    56  		]
    57  	}
    58  ]