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
1 change: 1 addition & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ expressed as JSON Schema definitions.
| JSON-RPC | [JSON-RPC 2.0](https://www.jsonrpc.org/specification) | JSON-RPC 2.0 Specification |
| JSON Schema | [Draft 2020-12](https://json-schema.org/draft/2020-12/json-schema-core) | JSON Schema: A Media Type for Describing JSON Documents |
| W3C | [XML Schema Part 2](https://www.w3.org/TR/xmlschema-2/) | XML Schema Datatypes Second Edition |
| XBRL International | [XBRL 2.1](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) | Extensible Business Reporting Language (XBRL) 2.1 |

To request coverage of another standard, please [open an issue on
GitHub](https://github.com/sourcemeta/std/issues).
Expand Down
16 changes: 16 additions & 0 deletions schemas/xbrl/instance/2003/any-uri-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL anyURIItemType",
"description": "XBRL item type for Uniform Resource Identifiers (URIs). Based on W3C XML Schema anyURI",
"examples": [
"https://example.com",
"http://test.org/path",
"urn:isbn:0-486-27557-4"
],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/any-uri.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/base64-binary-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL base64BinaryItemType",
"description": "XBRL item type for Base64-encoded binary data. Based on W3C XML Schema base64Binary",
"examples": [ "SGVsbG8=", "V29ybGQ=", "VGVzdA==" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/base64-binary.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/boolean-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL booleanItemType",
"description": "XBRL item type for boolean values (true or false). Based on W3C XML Schema boolean",
"examples": [ true, false, true ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/boolean.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/byte-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL byteItemType",
"description": "XBRL item type for signed 8-bit integers. Based on W3C XML Schema byte",
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/byte.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/date-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL dateItemType",
"description": "XBRL item type for calendar dates. Based on W3C XML Schema date",
"examples": [ "2002-10-10", "2002-10-10Z", "2002-10-10+13:00" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/date.json"
}
24 changes: 24 additions & 0 deletions schemas/xbrl/instance/2003/date-time-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL dateTimeItemType",
"description": "XBRL item type for dates or date-time values. Union of W3C XML Schema date and dateTime types",
"examples": [
"2002-10-10",
"2002-10-10T12:00:00-05:00",
"2002-10-10Z",
"2002-05-30T09:00:00"
],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"anyOf": [
{
"$ref": "../../../w3c/xmlschema/2001/date.json"
},
{
"$ref": "../../../w3c/xmlschema/2001/date-time.json"
}
]
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/decimal-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$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" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/decimal.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/double-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL doubleItemType",
"description": "XBRL item type for double-precision 64-bit floating point numbers. Based on W3C XML Schema double",
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/double.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/duration-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL durationItemType",
"description": "XBRL item type for time durations. Based on W3C XML Schema duration",
"examples": [ "P1Y2M3DT10H30M", "P3Y6M4DT12H30M5S", "-P120D" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/duration.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/float-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL floatItemType",
"description": "XBRL item type for single-precision 32-bit floating point numbers. Based on W3C XML Schema float",
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/float.json"
}
30 changes: 30 additions & 0 deletions schemas/xbrl/instance/2003/fraction-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"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" ]
],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"type": "array",
"maxItems": 2,
"minItems": 2,
"prefixItems": [
{
"$ref": "../../../w3c/xmlschema/2001/decimal.json"
},
{
"$ref": "../../../w3c/xmlschema/2001/decimal.json",
"not": {
"pattern": "^-?0+(\\.0+)?$"
}
}
]
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/g-day-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL gDayItemType",
"description": "XBRL item type for recurring Gregorian calendar days. Based on W3C XML Schema gDay",
"examples": [ "---01", "---15", "---31" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/g-day.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/g-month-day-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL gMonthDayItemType",
"description": "XBRL item type for recurring Gregorian calendar month-day combinations. Based on W3C XML Schema gMonthDay",
"examples": [ "--01-15", "--12-25", "--07-04" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/g-month-day.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/g-month-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL gMonthItemType",
"description": "XBRL item type for Gregorian calendar months. Based on W3C XML Schema gMonth",
"examples": [ "--01", "--06", "--12" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/g-month.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/g-year-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL gYearItemType",
"description": "XBRL item type for Gregorian calendar years. Based on W3C XML Schema gYear",
"examples": [ "2023", "1999", "2024" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/g-year.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/g-year-month-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL gYearMonthItemType",
"description": "XBRL item type for Gregorian calendar year-month combinations. Based on W3C XML Schema gYearMonth",
"examples": [ "2023-01", "1999-12", "2024-06" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/g-year-month.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/hex-binary-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL hexBinaryItemType",
"description": "XBRL item type for hexadecimal-encoded binary data. Based on W3C XML Schema hexBinary",
"examples": [ "48656C6C6F", "DEADBEEF", "0123456789ABCDEF" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/hex-binary.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/int-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL intItemType",
"description": "XBRL item type for signed 32-bit integers. Based on W3C XML Schema int",
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/int.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/integer-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$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" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/integer.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/language-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL languageItemType",
"description": "Non-numeric item type based on the XML Schema built-in types that are derived by restriction and/or list from string",
"examples": [ "en", "en-US", "fr-CA" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/language.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/long-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL longItemType",
"description": "XBRL item type for signed 64-bit integers. Based on W3C XML Schema long",
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/long.json"
}
34 changes: 34 additions & 0 deletions schemas/xbrl/instance/2003/monetary-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL monetaryItemType",
"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",
"currency": "USD"
},
{
"value": "-25.00",
"currency": "EUR"
},
{
"value": "0",
"currency": "GBP"
}
],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"type": "object",
"required": [ "value", "currency" ],
"properties": {
"value": {
"$ref": "../../../w3c/xmlschema/2001/decimal.json"
},
"currency": {
"$ref": "../../../iso/currency/2015/alpha-currency.json"
}
}
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/name-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL NameItemType",
"description": "Non-numeric item type based on the XML Schema built-in types that are derived by restriction and/or list from string",
"examples": [ "Name1", "element-name", "my:name" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/name.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/ncname-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "XBRL NCNameItemType",
"description": "Non-numeric item type based on the XML Schema built-in types that are derived by restriction and/or list from string",
"examples": [ "elementName", "attribute1", "localName" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/ncname.json"
}
12 changes: 12 additions & 0 deletions schemas/xbrl/instance/2003/negative-integer-item-type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$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" ],
"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",
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
],
"$ref": "../../../w3c/xmlschema/2001/negative-integer.json"
}
Loading