cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft7/optional/bignum.json (about)

     1  [
     2  	{
     3  		"description": "integer",
     4  		"schema": {
     5  			"type": "integer"
     6  		},
     7  		"tests": [
     8  			{
     9  				"description": "a bignum is an integer",
    10  				"data": 12345678910111213141516171819202122232425262728293031,
    11  				"valid": true
    12  			},
    13  			{
    14  				"description": "a negative bignum is an integer",
    15  				"data": -12345678910111213141516171819202122232425262728293031,
    16  				"valid": true
    17  			}
    18  		]
    19  	},
    20  	{
    21  		"description": "number",
    22  		"schema": {
    23  			"type": "number"
    24  		},
    25  		"tests": [
    26  			{
    27  				"description": "a bignum is a number",
    28  				"data": 98249283749234923498293171823948729348710298301928331,
    29  				"valid": true
    30  			},
    31  			{
    32  				"description": "a negative bignum is a number",
    33  				"data": -98249283749234923498293171823948729348710298301928331,
    34  				"valid": true
    35  			}
    36  		]
    37  	},
    38  	{
    39  		"description": "string",
    40  		"schema": {
    41  			"type": "string"
    42  		},
    43  		"tests": [
    44  			{
    45  				"description": "a bignum is not a string",
    46  				"data": 98249283749234923498293171823948729348710298301928331,
    47  				"valid": false
    48  			}
    49  		]
    50  	},
    51  	{
    52  		"description": "maximum integer comparison",
    53  		"schema": {
    54  			"maximum": 18446744073709551615
    55  		},
    56  		"tests": [
    57  			{
    58  				"description": "comparison works for high numbers",
    59  				"data": 18446744073709551600,
    60  				"valid": true
    61  			}
    62  		]
    63  	},
    64  	{
    65  		"description": "float comparison with high precision",
    66  		"schema": {
    67  			"exclusiveMaximum": 972783798187987123879878123.18878137
    68  		},
    69  		"tests": [
    70  			{
    71  				"description": "comparison works for high numbers",
    72  				"data": 972783798187987123879878123.188781371,
    73  				"valid": false
    74  			}
    75  		]
    76  	},
    77  	{
    78  		"description": "minimum integer comparison",
    79  		"schema": {
    80  			"minimum": -18446744073709551615
    81  		},
    82  		"tests": [
    83  			{
    84  				"description": "comparison works for very negative numbers",
    85  				"data": -18446744073709551600,
    86  				"valid": true
    87  			}
    88  		]
    89  	},
    90  	{
    91  		"description": "float comparison with high precision on negative numbers",
    92  		"schema": {
    93  			"exclusiveMinimum": -972783798187987123879878123.18878137
    94  		},
    95  		"tests": [
    96  			{
    97  				"description": "comparison works for very negative numbers",
    98  				"data": -972783798187987123879878123.188781371,
    99  				"valid": false
   100  			}
   101  		]
   102  	}
   103  ]