cuelang.org/go@v0.13.0/encoding/jsonschema/testdata/external/tests/draft4/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 "maximum": 972783798187987123879878123.18878137, 68 "exclusiveMaximum": true 69 }, 70 "tests": [ 71 { 72 "description": "comparison works for high numbers", 73 "data": 972783798187987123879878123.188781371, 74 "valid": false 75 } 76 ] 77 }, 78 { 79 "description": "minimum integer comparison", 80 "schema": { 81 "minimum": -18446744073709551615 82 }, 83 "tests": [ 84 { 85 "description": "comparison works for very negative numbers", 86 "data": -18446744073709551600, 87 "valid": true 88 } 89 ] 90 }, 91 { 92 "description": "float comparison with high precision on negative numbers", 93 "schema": { 94 "minimum": -972783798187987123879878123.18878137, 95 "exclusiveMinimum": true 96 }, 97 "tests": [ 98 { 99 "description": "comparison works for very negative numbers", 100 "data": -972783798187987123879878123.188781371, 101 "valid": false 102 } 103 ] 104 } 105 ]