Skip to content

Commit e75da8b

Browse files
committed
Model XBRL Instance core data types
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent a4a43b6 commit e75da8b

81 files changed

Lines changed: 2224 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ expressed as JSON Schema definitions.
7777
| JSON-RPC | [JSON-RPC 2.0](https://www.jsonrpc.org/specification) | JSON-RPC 2.0 Specification |
7878
| JSON Schema | [Draft 2020-12](https://json-schema.org/draft/2020-12/json-schema-core) | JSON Schema: A Media Type for Describing JSON Documents |
7979
| W3C | [XML Schema Part 2](https://www.w3.org/TR/xmlschema-2/) | XML Schema Datatypes Second Edition |
80+
| 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 |
8081

8182
To request coverage of another standard, please [open an issue on
8283
GitHub](https://github.com/sourcemeta/std/issues).
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL anyURIItemType",
4+
"description": "XBRL item type for Uniform Resource Identifiers (URIs). Based on W3C XML Schema anyURI",
5+
"examples": [
6+
"https://example.com",
7+
"http://test.org/path",
8+
"urn:isbn:0-486-27557-4"
9+
],
10+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
11+
"x-links": [
12+
"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",
13+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
14+
],
15+
"$ref": "../../../w3c/xmlschema/2001/any-uri.json"
16+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL base64BinaryItemType",
4+
"description": "XBRL item type for Base64-encoded binary data. Based on W3C XML Schema base64Binary",
5+
"examples": [ "SGVsbG8=", "V29ybGQ=", "VGVzdA==" ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/base64-binary.json"
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL booleanItemType",
4+
"description": "XBRL item type for boolean values (true or false). Based on W3C XML Schema boolean",
5+
"examples": [ true, false, true ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/boolean.json"
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL byteItemType",
4+
"description": "XBRL item type for signed 8-bit integers. Based on W3C XML Schema byte",
5+
"examples": [ 42, -100, 0 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/byte.json"
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL dateItemType",
4+
"description": "XBRL item type for calendar dates. Based on W3C XML Schema date",
5+
"examples": [ "2002-10-10", "2002-10-10Z", "2002-10-10+13:00" ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/date.json"
12+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL dateTimeItemType",
4+
"description": "XBRL item type for dates or date-time values. Union of W3C XML Schema date and dateTime types",
5+
"examples": [
6+
"2002-10-10",
7+
"2002-10-10T12:00:00-05:00",
8+
"2002-10-10Z",
9+
"2002-05-30T09:00:00"
10+
],
11+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
12+
"x-links": [
13+
"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",
14+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
15+
],
16+
"anyOf": [
17+
{
18+
"$ref": "../../../w3c/xmlschema/2001/date.json"
19+
},
20+
{
21+
"$ref": "../../../w3c/xmlschema/2001/date-time.json"
22+
}
23+
]
24+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL decimalItemType",
4+
"description": "XBRL item type for decimal values. Based on W3C XML Schema decimal",
5+
"examples": [ "123.45", "-67.89", "0.0" ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/decimal.json"
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL doubleItemType",
4+
"description": "XBRL item type for double-precision 64-bit floating point numbers. Based on W3C XML Schema double",
5+
"examples": [ 123.45, -67.89, 0.0 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/double.json"
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "XBRL durationItemType",
4+
"description": "XBRL item type for time durations. Based on W3C XML Schema duration",
5+
"examples": [ "P1Y2M3DT10H30M", "P3Y6M4DT12H30M5S", "-P120D" ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"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",
9+
"https://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd"
10+
],
11+
"$ref": "../../../w3c/xmlschema/2001/duration.json"
12+
}

0 commit comments

Comments
 (0)