]> git.proxmox.com Git - ceph.git/blob - ceph/src/rapidjson/bin/jsonschema/tests/draft4/optional/bignum.json
update sources to v12.1.0
[ceph.git] / ceph / src / rapidjson / bin / jsonschema / tests / draft4 / optional / bignum.json
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 },
13 {
14 "description": "number",
15 "schema": {"type": "number"},
16 "tests": [
17 {
18 "description": "a bignum is a number",
19 "data": 98249283749234923498293171823948729348710298301928331,
20 "valid": true
21 }
22 ]
23 },
24 {
25 "description": "integer",
26 "schema": {"type": "integer"},
27 "tests": [
28 {
29 "description": "a negative bignum is an integer",
30 "data": -12345678910111213141516171819202122232425262728293031,
31 "valid": true
32 }
33 ]
34 },
35 {
36 "description": "number",
37 "schema": {"type": "number"},
38 "tests": [
39 {
40 "description": "a negative bignum is a number",
41 "data": -98249283749234923498293171823948729348710298301928331,
42 "valid": true
43 }
44 ]
45 },
46 {
47 "description": "string",
48 "schema": {"type": "string"},
49 "tests": [
50 {
51 "description": "a bignum is not a string",
52 "data": 98249283749234923498293171823948729348710298301928331,
53 "valid": false
54 }
55 ]
56 },
57 {
58 "description": "integer comparison",
59 "schema": {"maximum": 18446744073709551615},
60 "tests": [
61 {
62 "description": "comparison works for high numbers",
63 "data": 18446744073709551600,
64 "valid": true
65 }
66 ]
67 },
68 {
69 "description": "float comparison with high precision",
70 "schema": {
71 "maximum": 972783798187987123879878123.18878137,
72 "exclusiveMaximum": true
73 },
74 "tests": [
75 {
76 "description": "comparison works for high numbers",
77 "data": 972783798187987123879878123.188781371,
78 "valid": false
79 }
80 ]
81 },
82 {
83 "description": "integer comparison",
84 "schema": {"minimum": -18446744073709551615},
85 "tests": [
86 {
87 "description": "comparison works for very negative numbers",
88 "data": -18446744073709551600,
89 "valid": true
90 }
91 ]
92 },
93 {
94 "description": "float comparison with high precision on negative numbers",
95 "schema": {
96 "minimum": -972783798187987123879878123.18878137,
97 "exclusiveMinimum": true
98 },
99 "tests": [
100 {
101 "description": "comparison works for very negative numbers",
102 "data": -972783798187987123879878123.188781371,
103 "valid": false
104 }
105 ]
106 }
107 ]