Skip to content

Commit 060899d

Browse files
authored
Implement XBRL DTR 2024-01-31 types (#53)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent cc20f58 commit 060899d

File tree

99 files changed

+2653
-0
lines changed

Some content is hidden

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

99 files changed

+2653
-0
lines changed

README.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ expressed as JSON Schema definitions.
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 |
8080
| 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 |
81+
| XBRL International | [XBRL DTR](https://www.xbrl.org/dtr/dtr.html) | XBRL Data Types Registry |
8182

8283
To request coverage of another standard, please [open an issue on
8384
GitHub](https://github.com/sourcemeta/std/issues).
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 DTR 2024-01-31 areaItemType",
4+
"description": "This type represents an area measurement",
5+
"examples": [ 100.5, 0.25, 1000000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"$ref": "../../../../xbrl/instance/2003/decimal-item-type.json"
12+
}
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 DTR 2024-01-31 dateTimeItemType",
4+
"description": "This type is for date-time values that require both date and time components. This is a restriction of XBRL dateTimeItemType to exclude date-only values",
5+
"examples": [
6+
"2023-12-31T23:59:59Z",
7+
"2024-01-01T00:00:00-05:00",
8+
"2024-06-15T12:30:00"
9+
],
10+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
11+
"x-links": [
12+
"https://www.xbrl.org/dtr/dtr.html",
13+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
14+
],
15+
"$ref": "../../../../w3c/xmlschema/2001/date-time.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 DTR 2024-01-31 domainItemType",
4+
"description": "The domain member item type is used to indicate that an element is a domain member and therefore should not have any content",
5+
"examples": [ "" ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"const": ""
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 DTR 2024-01-31 electricChargeItemType",
4+
"description": "This type represents a measurement of physical charge property",
5+
"examples": [ 1.602e-19, 100.5, 0.001 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"$ref": "../../../../xbrl/instance/2003/decimal-item-type.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 DTR 2024-01-31 electricCurrentItemType",
4+
"description": "This type represents a measurement of electric charge flow",
5+
"examples": [ 10.5, 0.5, 100 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"$ref": "../../../../xbrl/instance/2003/decimal-item-type.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 DTR 2024-01-31 energyItemType",
4+
"description": "This type represents a unit of energy",
5+
"examples": [ 1000.5, 25.75, 99999 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"$ref": "../../../../xbrl/instance/2003/decimal-item-type.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 DTR 2024-01-31 energyPerMonetaryItemType",
4+
"description": "This type represents energy per monetary unit, such as energy intensity",
5+
"examples": [ 1000.5, 25.75, 100 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"$ref": "../../../../xbrl/instance/2003/decimal-item-type.json"
12+
}
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 DTR 2024-01-31 escapedItemType",
4+
"description": "This type specializes string for escaped content and is suitable for representing HTML 4.0 escaped content",
5+
"examples": [
6+
"&lt;div&gt;Hello&lt;/div&gt;",
7+
"Some &amp; text",
8+
"Plain text"
9+
],
10+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
11+
"x-links": [
12+
"https://www.xbrl.org/dtr/dtr.html",
13+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
14+
],
15+
"$ref": "../../../../xbrl/instance/2003/string-item-type.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 DTR 2024-01-31 flowItemType",
4+
"description": "This type represents a measurement of volumetric flow rate",
5+
"examples": [ 100.5, 25.75, 1000 ],
6+
"x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE",
7+
"x-links": [
8+
"https://www.xbrl.org/dtr/dtr.html",
9+
"https://www.xbrl.org/dtr/type/2024-01-31/types.xsd"
10+
],
11+
"$ref": "../../../../xbrl/instance/2003/decimal-item-type.json"
12+
}

0 commit comments

Comments
 (0)