Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions schemas/w3c/xmlschema/2001/decimal.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,9 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema decimal",
"description": "The decimal datatype represents arbitrary precision decimal numbers (§3.2.3)",
"$comment": "XML Schema requires minimally conforming processors to support decimal numbers with a minimum of 18 decimal digits (totalDigits). JSON's number type (IEEE 754 double-precision) provides only 15-17 significant decimal digits, which does not meet this minimum requirement. This schema uses string representation to maintain XML Schema conformance",
"examples": [
"-1.23",
"12678967.543233",
"+100000.00",
"210",
"0",
"-0",
"3.14159265358979323846"
],
"$comment": "XML Schema requires minimally conforming processors to support decimal numbers with a minimum of 18 decimal digits (totalDigits). JSON's number type (IEEE 754 double-precision) provides only 15-17 significant decimal digits. To properly validate arbitrary precision decimals, use a JSON Schema evaluator that supports arbitrary precision number handling",
"examples": [ -1.23, 12679000.0, 100000.0, 210, 0, 3.14159 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#decimal" ],
"type": "string",
"pattern": "^[+-]?([0-9]+\\.[0-9]+|[0-9]+)$"
"type": "number"
}
16 changes: 3 additions & 13 deletions schemas/w3c/xmlschema/2001/integer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,9 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema integer",
"description": "Represents arbitrary-sized integers derived from decimal (§3.3.13)",
"$comment": "XML Schema supports arbitrary precision. JSON Schema's integer type is limited to the 64-bit range for safe interoperability per RFC 8259. This schema uses string representation to maintain XML Schema's arbitrary precision semantics",
"examples": [
"0",
"1",
"-1",
"42",
"-273",
"12678967543233",
"-9999999999999999",
"999999999999999999999999999999"
],
"$comment": "XML Schema supports arbitrary precision integers. JSON's number type is limited to the safe integer range (±2^53-1) per IEEE 754. To properly validate arbitrary precision integers, use a JSON Schema evaluator that supports arbitrary precision integer handling",
"examples": [ 0, 1, -1, 42, -273, 12678967543233, -9999999999999999 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#integer" ],
"type": "string",
"pattern": "^[+-]?(0|[1-9][0-9]*)$"
"type": "integer"
}
14 changes: 4 additions & 10 deletions schemas/w3c/xmlschema/2001/negative-integer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema negativeInteger",
"description": "Represents strictly negative integers (§3.3.15)",
"$comment": "XML Schema supports arbitrary precision. JSON Schema's integer type is limited to the 64-bit range for safe interoperability per RFC 8259. This schema uses string representation to maintain XML Schema's arbitrary precision semantics",
"examples": [
"-1",
"-42",
"-1000",
"-9223372036854775808",
"-999999999999999999999999999999"
],
"$comment": "XML Schema supports arbitrary precision integers. JSON's number type is limited to the safe integer range (±2^53-1) per IEEE 754. To properly validate arbitrary precision integers, use a JSON Schema evaluator that supports arbitrary precision integer handling",
"examples": [ -1, -42, -1000, -9223372036854775808 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#negativeInteger" ],
"type": "string",
"pattern": "^-[1-9][0-9]*$"
"type": "integer",
"maximum": -1
}
15 changes: 4 additions & 11 deletions schemas/w3c/xmlschema/2001/non-negative-integer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema nonNegativeInteger",
"description": "Represents integers greater than or equal to zero (§3.3.20)",
"$comment": "XML Schema supports arbitrary precision. JSON Schema's integer type is limited to the 64-bit range for safe interoperability per RFC 8259. This schema uses string representation to maintain XML Schema's arbitrary precision semantics",
"examples": [
"0",
"1",
"42",
"1000",
"9223372036854775807",
"999999999999999999999999999999"
],
"$comment": "XML Schema supports arbitrary precision integers. JSON's number type is limited to the safe integer range (±2^53-1) per IEEE 754. To properly validate arbitrary precision integers, use a JSON Schema evaluator that supports arbitrary precision integer handling",
"examples": [ 0, 1, 42, 1000, 9223372036854775807 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#nonNegativeInteger" ],
"type": "string",
"pattern": "^(0|[1-9][0-9]*)$"
"type": "integer",
"minimum": 0
}
15 changes: 4 additions & 11 deletions schemas/w3c/xmlschema/2001/non-positive-integer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,10 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema nonPositiveInteger",
"description": "Represents integers less than or equal to zero (§3.3.14)",
"$comment": "XML Schema supports arbitrary precision. JSON Schema's integer type is limited to the 64-bit range for safe interoperability per RFC 8259. This schema uses string representation to maintain XML Schema's arbitrary precision semantics",
"examples": [
"0",
"-1",
"-42",
"-1000",
"-9223372036854775808",
"-999999999999999999999999999999"
],
"$comment": "XML Schema supports arbitrary precision integers. JSON's number type is limited to the safe integer range (±2^53-1) per IEEE 754. To properly validate arbitrary precision integers, use a JSON Schema evaluator that supports arbitrary precision integer handling",
"examples": [ 0, -1, -42, -1000, -9223372036854775808 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#nonPositiveInteger" ],
"type": "string",
"pattern": "^(0|-[1-9][0-9]*)$"
"type": "integer",
"maximum": 0
}
14 changes: 4 additions & 10 deletions schemas/w3c/xmlschema/2001/positive-integer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,10 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema positiveInteger",
"description": "Represents strictly positive integers (§3.3.25)",
"$comment": "XML Schema supports arbitrary precision. JSON Schema's integer type is limited to the 64-bit range for safe interoperability per RFC 8259. This schema uses string representation to maintain XML Schema's arbitrary precision semantics",
"examples": [
"1",
"42",
"1000",
"9223372036854775807",
"999999999999999999999999999999"
],
"$comment": "XML Schema supports arbitrary precision integers. JSON's number type is limited to the safe integer range (±2^53-1) per IEEE 754. To properly validate arbitrary precision integers, use a JSON Schema evaluator that supports arbitrary precision integer handling",
"examples": [ 1, 42, 1000, 9223372036854775807 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#positiveInteger" ],
"type": "string",
"pattern": "^[1-9][0-9]*$"
"type": "integer",
"minimum": 1
}
72 changes: 4 additions & 68 deletions schemas/w3c/xmlschema/2001/unsigned-long.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,74 +2,10 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "W3C XML Schema unsignedLong",
"description": "Represents 64-bit unsigned integers (§3.3.21)",
"$comment": "XML Schema unsignedLong supports the 64-bit unsigned range, but JSON Schema's integer type is limited to signed 64-bit integers. This schema uses string representation to maintain full XML Schema conformance",
"examples": [
"0",
"1",
"18446744073709551615",
"9223372036854775808",
"4294967296"
],
"$comment": "XML Schema supports arbitrary precision integers. JSON's number type is limited to the safe integer range (±2^53-1) per IEEE 754. To properly validate arbitrary precision integers, use a JSON Schema evaluator that supports arbitrary precision integer handling",
"examples": [ 0, 1, 9007199254740991, 4294967296 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [ "https://www.w3.org/TR/xmlschema-2/#unsignedLong" ],
"type": "string",
"anyOf": [
{
"pattern": "^0$"
},
{
"pattern": "^[1-9][0-9]{0,18}$"
},
{
"pattern": "^1[0-7][0-9]{18}$"
},
{
"pattern": "^18[0-3][0-9]{17}$"
},
{
"pattern": "^184[0-3][0-9]{16}$"
},
{
"pattern": "^1844[0-5][0-9]{15}$"
},
{
"pattern": "^18446[0-6][0-9]{14}$"
},
{
"pattern": "^184467[0-3][0-9]{13}$"
},
{
"pattern": "^1844674[0-3][0-9]{12}$"
},
{
"pattern": "^184467440[0-6][0-9]{10}$"
},
{
"pattern": "^1844674407[0-2][0-9]{9}$"
},
{
"pattern": "^18446744073[0-6][0-9]{8}$"
},
{
"pattern": "^1844674407370[0-8][0-9]{6}$"
},
{
"pattern": "^18446744073709[0-4][0-9]{5}$"
},
{
"pattern": "^184467440737095[0-4][0-9]{4}$"
},
{
"pattern": "^1844674407370955[0][0-9]{3}$"
},
{
"pattern": "^18446744073709551[0-5][0-9]{2}$"
},
{
"pattern": "^184467440737095516[0][0-9]$"
},
{
"pattern": "^1844674407370955161[0-5]$"
}
]
"type": "integer",
"minimum": 0
}
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/decimal-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL decimalItemType",
"description": "XBRL item type for decimal values. Based on W3C XML Schema decimal",
"examples": [ "123.45", "-67.89", "0.0" ],
"examples": [ 123.45, -67.89, 0.0 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
10 changes: 5 additions & 5 deletions schemas/xbrl/instance/2003/fraction-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"title": "XBRL fractionItemType",
"description": "XBRL item type for fractional values with explicit numerator and denominator. Represented as a two-element array of W3C XML Schema decimal values",
"examples": [
[ "1.5", "2" ],
[ "-100", "3.5" ],
[ "5", "-2.5" ],
[ "0", "1" ]
[ 1.5, 2 ],
[ -100, 3.5 ],
[ 5, -2.5 ],
[ 0, 1 ]
],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
Expand All @@ -23,7 +23,7 @@
{
"$ref": "../../../w3c/xmlschema/2001/decimal.json",
"not": {
"pattern": "^-?0+(\\.0+)?$"
"const": 0
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/integer-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL integerItemType",
"description": "XBRL item type for arbitrary-precision signed integers. Based on W3C XML Schema integer",
"examples": [ "42", "-100", "0" ],
"examples": [ 42, -100, 0 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
6 changes: 3 additions & 3 deletions schemas/xbrl/instance/2003/monetary-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "The monetary type serves as the datatype for those financial concepts in a taxonomy which denote units in a currency",
"examples": [
{
"value": "100.50",
"value": 100.5,
"currency": "USD"
},
{
"value": "-25.00",
"value": -25.0,
"currency": "EUR"
},
{
"value": "0",
"value": 0,
"currency": "GBP"
}
],
Expand Down
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/negative-integer-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL negativeIntegerItemType",
"description": "XBRL item type for arbitrary-precision negative integers (less than zero). Based on W3C XML Schema negativeInteger",
"examples": [ "-42", "-100", "-1" ],
"examples": [ -42, -100, -1 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL nonNegativeIntegerItemType",
"description": "XBRL item type for arbitrary-precision non-negative integers (zero or positive). Based on W3C XML Schema nonNegativeInteger",
"examples": [ "42", "100", "1" ],
"examples": [ 42, 100, 1 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL nonPositiveIntegerItemType",
"description": "XBRL item type for arbitrary-precision non-positive integers (zero or negative). Based on W3C XML Schema nonPositiveInteger",
"examples": [ "-42", "-100", "0" ],
"examples": [ -42, -100, 0 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/positive-integer-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL positiveIntegerItemType",
"description": "XBRL item type for arbitrary-precision positive integers (greater than zero). Based on W3C XML Schema positiveInteger",
"examples": [ "42", "100", "1" ],
"examples": [ 42, 100, 1 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/pure-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL pureItemType",
"description": "This datatype serves as the type for dimensionless numbers such as percentage change, growth rates, and other ratios where the numerator and denominator have the same units. Based on W3C XML Schema decimal",
"examples": [ "100.50", "-25.00", "0" ],
"examples": [ 100.5, -25.0, 0 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/shares-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL sharesItemType",
"description": "This datatype serves as the datatype for share based financial concepts. Based on W3C XML Schema decimal",
"examples": [ "100.50", "-25.00", "0" ],
"examples": [ 100.5, -25.0, 0 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion schemas/xbrl/instance/2003/unsigned-long-item-type.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL unsignedLongItemType",
"description": "XBRL item type for arbitrary-precision unsigned 64-bit integers. Based on W3C XML Schema unsignedLong",
"examples": [ "42", "100", "1" ],
"examples": [ 42, 100, 1 ],
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
"x-links": [
"https://www.xbrl.org/Specification/XBRL-2.1/REC-2003-12-31/XBRL-2.1-REC-2003-12-31+corrected-errata-2013-02-20.html#_5.1.1.3",
Expand Down
Loading