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