From 224d99983405625d5eb582ff85db153e2d089282 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Wed, 5 Nov 2025 13:45:45 -0400 Subject: [PATCH] Implement XBRL DTR 2024-01-31 types Signed-off-by: Juan Cruz Viotti --- README.markdown | 1 + .../dtr/type/2024-01-31/area-item-type.json | 12 +++ .../type/2024-01-31/datetime-item-type.json | 16 +++ .../dtr/type/2024-01-31/domain-item-type.json | 12 +++ .../2024-01-31/electric-charge-item-type.json | 12 +++ .../electric-current-item-type.json | 12 +++ .../dtr/type/2024-01-31/energy-item-type.json | 12 +++ .../energy-per-monetary-item-type.json | 12 +++ .../type/2024-01-31/escaped-item-type.json | 16 +++ .../dtr/type/2024-01-31/flow-item-type.json | 12 +++ .../dtr/type/2024-01-31/force-item-type.json | 12 +++ .../type/2024-01-31/frequency-item-type.json | 12 +++ .../2024-01-31/ghg-emissions-item-type.json | 12 +++ .../ghg-emissions-per-monetary-item-type.json | 12 +++ .../type/2024-01-31/guidance-item-type.json | 16 +++ .../type/2024-01-31/gyear-list-item-type.json | 19 ++++ .../type/2024-01-31/insolation-item-type.json | 12 +++ .../type/2024-01-31/irradiance-item-type.json | 12 +++ .../dtr/type/2024-01-31/length-item-type.json | 12 +++ .../type/2024-01-31/mass-flow-item-type.json | 12 +++ .../dtr/type/2024-01-31/mass-item-type.json | 12 +++ .../dtr/type/2024-01-31/memory-item-type.json | 12 +++ .../monetary-per-area-item-type.json | 12 +++ .../monetary-per-duration-item-type.json | 12 +++ .../monetary-per-energy-item-type.json | 12 +++ .../monetary-per-length-item-type.json | 12 +++ .../monetary-per-mass-item-type.json | 12 +++ .../monetary-per-volume-item-type.json | 12 +++ .../no-decimals-monetary-item-type.json | 30 ++++++ .../2024-01-31/no-lang-string-item-type.json | 16 +++ .../2024-01-31/no-lang-token-item-type.json | 12 +++ .../non-negative-monetary-item-type.json | 30 ++++++ ...gative-no-decimals-monetary-item-type.json | 31 ++++++ .../type/2024-01-31/per-share-item-type.json | 12 +++ .../type/2024-01-31/percent-item-type.json | 12 +++ .../2024-01-31/plane-angle-item-type.json | 12 +++ .../dtr/type/2024-01-31/power-item-type.json | 12 +++ .../prefixed-content-item-type.json | 12 +++ .../type/2024-01-31/pressure-item-type.json | 12 +++ .../dtr/type/2024-01-31/speed-item-type.json | 12 +++ .../dtr/type/2024-01-31/sqname-item-type.json | 13 +++ .../type/2024-01-31/sqnames-item-type.json | 19 ++++ .../2024-01-31/temperature-item-type.json | 12 +++ .../type/2024-01-31/text-block-item-type.json | 16 +++ .../type/2024-01-31/voltage-item-type.json | 12 +++ .../dtr/type/2024-01-31/volume-item-type.json | 12 +++ .../volume-per-monetary-item-type.json | 12 +++ .../dtr/type/2024-01-31/weight-item-type.json | 12 +++ .../dtr/type/2024-01-31/xml-item-type.json | 16 +++ .../type/2024-01-31/xml-nodes-item-type.json | 16 +++ .../type/2024-01-31/area-item-type.test.json | 36 +++++++ .../2024-01-31/datetime-item-type.test.json | 46 +++++++++ .../2024-01-31/domain-item-type.test.json | 26 +++++ .../electric-charge-item-type.test.json | 36 +++++++ .../electric-current-item-type.test.json | 36 +++++++ .../2024-01-31/energy-item-type.test.json | 36 +++++++ .../energy-per-monetary-item-type.test.json | 36 +++++++ .../2024-01-31/escaped-item-type.test.json | 31 ++++++ .../type/2024-01-31/flow-item-type.test.json | 36 +++++++ .../type/2024-01-31/force-item-type.test.json | 36 +++++++ .../2024-01-31/frequency-item-type.test.json | 36 +++++++ .../ghg-emissions-item-type.test.json | 36 +++++++ ...emissions-per-monetary-item-type.test.json | 36 +++++++ .../2024-01-31/guidance-item-type.test.json | 31 ++++++ .../2024-01-31/gyear-list-item-type.test.json | 51 ++++++++++ .../2024-01-31/insolation-item-type.test.json | 36 +++++++ .../2024-01-31/irradiance-item-type.test.json | 36 +++++++ .../2024-01-31/length-item-type.test.json | 36 +++++++ .../2024-01-31/mass-flow-item-type.test.json | 36 +++++++ .../type/2024-01-31/mass-item-type.test.json | 36 +++++++ .../2024-01-31/memory-item-type.test.json | 36 +++++++ .../monetary-per-area-item-type.test.json | 36 +++++++ .../monetary-per-duration-item-type.test.json | 36 +++++++ .../monetary-per-energy-item-type.test.json | 36 +++++++ .../monetary-per-length-item-type.test.json | 36 +++++++ .../monetary-per-mass-item-type.test.json | 36 +++++++ .../monetary-per-volume-item-type.test.json | 36 +++++++ .../no-decimals-monetary-item-type.test.json | 89 +++++++++++++++++ .../no-lang-string-item-type.test.json | 31 ++++++ .../no-lang-token-item-type.test.json | 26 +++++ .../non-negative-monetary-item-type.test.json | 89 +++++++++++++++++ ...e-no-decimals-monetary-item-type.test.json | 97 +++++++++++++++++++ .../2024-01-31/per-share-item-type.test.json | 36 +++++++ .../2024-01-31/percent-item-type.test.json | 36 +++++++ .../plane-angle-item-type.test.json | 36 +++++++ .../type/2024-01-31/power-item-type.test.json | 36 +++++++ .../prefixed-content-item-type.test.json | 26 +++++ .../2024-01-31/pressure-item-type.test.json | 36 +++++++ .../type/2024-01-31/speed-item-type.test.json | 36 +++++++ .../2024-01-31/sqname-item-type.test.json | 81 ++++++++++++++++ .../2024-01-31/sqnames-item-type.test.json | 61 ++++++++++++ .../temperature-item-type.test.json | 36 +++++++ .../2024-01-31/text-block-item-type.test.json | 31 ++++++ .../2024-01-31/voltage-item-type.test.json | 36 +++++++ .../2024-01-31/volume-item-type.test.json | 36 +++++++ .../volume-per-monetary-item-type.test.json | 36 +++++++ .../2024-01-31/weight-item-type.test.json | 36 +++++++ .../type/2024-01-31/xml-item-type.test.json | 31 ++++++ .../2024-01-31/xml-nodes-item-type.test.json | 31 ++++++ 99 files changed, 2653 insertions(+) create mode 100644 schemas/xbrl/dtr/type/2024-01-31/area-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/datetime-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/domain-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/energy-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/escaped-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/flow-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/force-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/frequency-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/guidance-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/insolation-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/length-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/mass-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/memory-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/per-share-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/percent-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/power-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/pressure-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/speed-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/sqname-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/temperature-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/text-block-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/voltage-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/volume-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/weight-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/xml-item-type.json create mode 100644 schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.json create mode 100644 test/xbrl/dtr/type/2024-01-31/area-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/datetime-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/domain-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/electric-charge-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/electric-current-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/energy-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/escaped-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/flow-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/force-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/frequency-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/guidance-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/gyear-list-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/insolation-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/irradiance-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/length-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/mass-flow-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/mass-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/memory-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/per-share-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/percent-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/plane-angle-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/power-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/pressure-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/speed-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/sqname-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/sqnames-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/temperature-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/text-block-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/voltage-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/volume-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/weight-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/xml-item-type.test.json create mode 100644 test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.test.json diff --git a/README.markdown b/README.markdown index e7cae46c..a39fa59c 100644 --- a/README.markdown +++ b/README.markdown @@ -78,6 +78,7 @@ expressed as JSON Schema definitions. | 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 | +| XBRL International | [XBRL DTR](https://www.xbrl.org/dtr/dtr.html) | XBRL Data Types Registry | To request coverage of another standard, please [open an issue on GitHub](https://github.com/sourcemeta/std/issues). diff --git a/schemas/xbrl/dtr/type/2024-01-31/area-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/area-item-type.json new file mode 100644 index 00000000..83446f89 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/area-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 areaItemType", + "description": "This type represents an area measurement", + "examples": [ 100.5, 0.25, 1000000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/datetime-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/datetime-item-type.json new file mode 100644 index 00000000..6a435d5e --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/datetime-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 dateTimeItemType", + "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", + "examples": [ + "2023-12-31T23:59:59Z", + "2024-01-01T00:00:00-05:00", + "2024-06-15T12:30:00" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../w3c/xmlschema/2001/date-time.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/domain-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/domain-item-type.json new file mode 100644 index 00000000..92c86acb --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/domain-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 domainItemType", + "description": "The domain member item type is used to indicate that an element is a domain member and therefore should not have any content", + "examples": [ "" ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "const": "" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type.json new file mode 100644 index 00000000..0e9e4dfe --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 electricChargeItemType", + "description": "This type represents a measurement of physical charge property", + "examples": [ 1.602e-19, 100.5, 0.001 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type.json new file mode 100644 index 00000000..a80af9ef --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 electricCurrentItemType", + "description": "This type represents a measurement of electric charge flow", + "examples": [ 10.5, 0.5, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/energy-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/energy-item-type.json new file mode 100644 index 00000000..af0e1101 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/energy-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 energyItemType", + "description": "This type represents a unit of energy", + "examples": [ 1000.5, 25.75, 99999 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.json new file mode 100644 index 00000000..47e31920 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 energyPerMonetaryItemType", + "description": "This type represents energy per monetary unit, such as energy intensity", + "examples": [ 1000.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/escaped-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/escaped-item-type.json new file mode 100644 index 00000000..7ef850eb --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/escaped-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 escapedItemType", + "description": "This type specializes string for escaped content and is suitable for representing HTML 4.0 escaped content", + "examples": [ + "<div>Hello</div>", + "Some & text", + "Plain text" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/string-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/flow-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/flow-item-type.json new file mode 100644 index 00000000..2f8fb14d --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/flow-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 flowItemType", + "description": "This type represents a measurement of volumetric flow rate", + "examples": [ 100.5, 25.75, 1000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/force-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/force-item-type.json new file mode 100644 index 00000000..001be231 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/force-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 forceItemType", + "description": "This type represents a measurement of physical force, such as in newtons", + "examples": [ 100.5, 9.81, 1000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/frequency-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/frequency-item-type.json new file mode 100644 index 00000000..41b04b8e --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/frequency-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 frequencyItemType", + "description": "This type represents a measurement of the number of occurrences per unit time", + "examples": [ 50, 60.5, 1000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.json new file mode 100644 index 00000000..1e369d57 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 ghgEmissionsItemType", + "description": "This type represents greenhouse gas emissions measured in global warming potential using CO2 equivalents", + "examples": [ 1000.5, 25.75, 50000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.json new file mode 100644 index 00000000..3995fceb --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 ghgEmissionsPerMonetaryItemType", + "description": "This type represents greenhouse gas emissions per monetary unit, such as emissions intensity", + "examples": [ 1000.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/guidance-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/guidance-item-type.json new file mode 100644 index 00000000..ee7dee4d --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/guidance-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 guidanceItemType", + "description": "This type is used to identify guidance elements provided for the benefit of taxonomy users", + "examples": [ + "This element represents the total assets", + "Use this for reporting annual revenue", + "Guidance text for taxonomy users" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/string-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type.json new file mode 100644 index 00000000..7b099915 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 gYearListItemType", + "description": "A list of W3C XML Schema gYear values", + "examples": [ + [ "2020", "2021", "2022" ], + [ "1999" ], + [ "-1999", "1000", "2024Z" ] + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "type": "array", + "items": { + "$ref": "../../../../w3c/xmlschema/2001/g-year.json" + } +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/insolation-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/insolation-item-type.json new file mode 100644 index 00000000..48471554 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/insolation-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 insolationItemType", + "description": "This type is used in the solar industry to represent a measure of energy per area over time, sometimes called solar irradiation", + "examples": [ 1500.5, 200.25, 5000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type.json new file mode 100644 index 00000000..cc6600a6 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 irradianceItemType", + "description": "This type represents a measurement of power per unit area", + "examples": [ 1000.5, 250.75, 500 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/length-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/length-item-type.json new file mode 100644 index 00000000..ea8a2b44 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/length-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 lengthItemType", + "description": "This type represents a measure of distance", + "examples": [ 100.5, 1.75, 1000000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type.json new file mode 100644 index 00000000..382f6d56 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 massFlowItemType", + "description": "This type represents a measurement of mass flow rate", + "examples": [ 100.5, 25.75, 1000 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/mass-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/mass-item-type.json new file mode 100644 index 00000000..eef7d5ab --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/mass-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 massItemType", + "description": "This type represents the mass of a measurable object", + "examples": [ 75.5, 1000, 0.001 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/memory-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/memory-item-type.json new file mode 100644 index 00000000..d461dcc5 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/memory-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 memoryItemType", + "description": "This type is used in the IT industry to represent a measurement of memory", + "examples": [ 1024, 512.5, 8192 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.json new file mode 100644 index 00000000..7732f7cd --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 monetaryPerAreaItemType", + "description": "This type represents a price or cost per unit area", + "examples": [ 10.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.json new file mode 100644 index 00000000..0a80708c --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 monetaryPerDurationItemType", + "description": "This type represents a price or cost per unit duration", + "examples": [ 10.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.json new file mode 100644 index 00000000..f7dda46e --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 monetaryPerEnergyItemType", + "description": "This type represents a price or cost per unit energy", + "examples": [ 10.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.json new file mode 100644 index 00000000..8959fd24 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 monetaryPerLengthItemType", + "description": "This type represents a price or cost per unit length", + "examples": [ 10.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.json new file mode 100644 index 00000000..7e9cc338 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 monetaryPerMassItemType", + "description": "This type represents a price or cost per unit mass", + "examples": [ 10.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.json new file mode 100644 index 00000000..72c5c68b --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 monetaryPerVolumeItemType", + "description": "This type represents a price or cost per unit volume", + "examples": [ 10.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.json new file mode 100644 index 00000000..f6f6e6b7 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 noDecimalsMonetaryItemType", + "description": "A taxonomy may use this type to indicate that monetary items having this type have no cents", + "examples": [ + { + "value": 100, + "currency": "USD" + }, + { + "value": -25, + "currency": "EUR" + }, + { + "value": 0, + "currency": "GBP" + } + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/monetary-item-type.json", + "properties": { + "value": { + "type": "integer" + } + } +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.json new file mode 100644 index 00000000..bea5bbcd --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 noLangStringItemType", + "description": "This type is for string values that should not have any language association", + "examples": [ + "Some string without language", + "Another example", + "No language tag" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/string-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.json new file mode 100644 index 00000000..d5b8c2e0 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 noLangTokenItemType", + "description": "This type is for values that should not have any language association, such as identifiers", + "examples": [ "identifier123", "SKU-45678", "CODE_ABC" ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/token-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.json new file mode 100644 index 00000000..c738634e --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 nonNegativeMonetaryItemType", + "description": "A taxonomy may use this type to indicate that monetary items having this type cannot be negative", + "examples": [ + { + "value": 100.5, + "currency": "USD" + }, + { + "value": 25.0, + "currency": "EUR" + }, + { + "value": 0, + "currency": "GBP" + } + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/monetary-item-type.json", + "properties": { + "value": { + "minimum": 0 + } + } +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.json new file mode 100644 index 00000000..fd3d5840 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 nonNegativeNoDecimalsMonetaryItemType", + "description": "A taxonomy may use this type to indicate that monetary items having this type have no cents and cannot be negative", + "examples": [ + { + "value": 100, + "currency": "USD" + }, + { + "value": 25, + "currency": "EUR" + }, + { + "value": 0, + "currency": "GBP" + } + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/monetary-item-type.json", + "properties": { + "value": { + "type": "integer", + "minimum": 0 + } + } +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/per-share-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/per-share-item-type.json new file mode 100644 index 00000000..e8115948 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/per-share-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 perShareItemType", + "description": "This type is used for monetary amounts divided by the number of shares, with decimal as the base type", + "examples": [ 10.5, 2.75, 100.25 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/percent-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/percent-item-type.json new file mode 100644 index 00000000..c4308cf9 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/percent-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 percentItemType", + "description": "This type is used to indicate that the value is presented as a percentage", + "examples": [ 0.15, 1.0, 0.0525 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/pure-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type.json new file mode 100644 index 00000000..367d65ab --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 planeAngleItemType", + "description": "This type represents a measurement of an angle, such as in radians or degrees", + "examples": [ 90, 45.5, 180 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/power-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/power-item-type.json new file mode 100644 index 00000000..8706ca16 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/power-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 powerItemType", + "description": "This type represents the rate at which energy is used or produced (for example, watts)", + "examples": [ 100.5, 1500, 0.25 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.json new file mode 100644 index 00000000..c7d6c9ac --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 prefixedContentItemType", + "description": "This type is for values that rely on namespace-prefix bindings in documents for their interpretation", + "examples": [ "xbrli:monetary", "iso4217:USD", "custom:MyElement" ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/token-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/pressure-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/pressure-item-type.json new file mode 100644 index 00000000..61e98c70 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/pressure-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 pressureItemType", + "description": "This type represents a measurement of force per unit area in common units such as Pascal, PSI, or Bar", + "examples": [ 101.325, 14.7, 1.01325 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/speed-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/speed-item-type.json new file mode 100644 index 00000000..2eb20591 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/speed-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 speedItemType", + "description": "This type represents a measurement of distance per unit time, such as knots or meters per second", + "examples": [ 100.5, 25.75, 500 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/sqname-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/sqname-item-type.json new file mode 100644 index 00000000..fe4d8b6d --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/sqname-item-type.json @@ -0,0 +1,13 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 SQNameItemType", + "description": "Simplified QNames relax the specification of the localpart of a QName for compatibility with the formats used in formula and table linkbases", + "examples": [ "xbrli:monetary", "iso4217:USD", "custom:MyElement" ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/token-item-type.json", + "pattern": "^[^:\\s0-9][^:\\s]*:\\S+$" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type.json new file mode 100644 index 00000000..28af193c --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 SQNamesItemType", + "description": "This type is for collections of Simplified QNames", + "examples": [ + [ "xbrli:monetary" ], + [ "iso4217:USD", "custom:MyElement" ], + [ "ns1:foo", "ns2:bar", "ns3:baz" ] + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "type": "array", + "items": { + "$ref": "sqname-item-type.json" + } +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/temperature-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/temperature-item-type.json new file mode 100644 index 00000000..24a5675d --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/temperature-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 temperatureItemType", + "description": "This type represents a measurement of absolute or differential temperature", + "examples": [ 25.5, -40, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/text-block-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/text-block-item-type.json new file mode 100644 index 00000000..477eee83 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/text-block-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 textBlockItemType", + "description": "This type is for mixed content that can be a simple string, an XHTML fragment, or a mixture of text and XHTML", + "examples": [ + "Simple text content", + "

XHTML paragraph

", + "Mixed bold content" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/string-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/voltage-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/voltage-item-type.json new file mode 100644 index 00000000..f89ab99a --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/voltage-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 voltageItemType", + "description": "This type represents a measurement of electric potential difference", + "examples": [ 120, 240.5, 12 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/volume-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/volume-item-type.json new file mode 100644 index 00000000..404052d9 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/volume-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 volumeItemType", + "description": "This type represents the volume of a solid, liquid, or gas", + "examples": [ 1000.5, 0.5, 1000000.0 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.json new file mode 100644 index 00000000..0cda33c9 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 volumePerMonetaryItemType", + "description": "This type represents volume per monetary unit, such as volume intensity", + "examples": [ 1000.5, 25.75, 100 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/weight-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/weight-item-type.json new file mode 100644 index 00000000..1aa18696 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/weight-item-type.json @@ -0,0 +1,12 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 weightItemType", + "description": "This type represents the weight of a measurable object", + "examples": [ 75.5, 1000, 0.001 ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/decimal-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/xml-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/xml-item-type.json new file mode 100644 index 00000000..5b7d106f --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/xml-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 xmlItemType", + "description": "This type indicates that unescaped content must be well-formed XML", + "examples": [ + "Content", + "

Paragraph

", + "Plain text" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/string-item-type.json" +} diff --git a/schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.json b/schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.json new file mode 100644 index 00000000..f7d96096 --- /dev/null +++ b/schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "XBRL DTR 2024-01-31 xmlNodesItemType", + "description": "This type indicates that unescaped content must be XML text content and a sequence of zero or more well-formed XML nodes", + "examples": [ + "Content", + "

Paragraph

Text", + "Plain text" + ], + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "x-links": [ + "https://www.xbrl.org/dtr/dtr.html", + "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd" + ], + "$ref": "../../../../xbrl/instance/2003/string-item-type.json" +} diff --git a/test/xbrl/dtr/type/2024-01-31/area-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/area-item-type.test.json new file mode 100644 index 00000000..a4460ea5 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/area-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/area-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/datetime-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/datetime-item-type.test.json new file mode 100644 index 00000000..c76f8fbd --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/datetime-item-type.test.json @@ -0,0 +1,46 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/datetime-item-type.json", + "tests": [ + { + "description": "Valid - datetime with timezone", + "data": "2023-12-31T23:59:59Z", + "valid": true + }, + { + "description": "Valid - datetime with offset", + "data": "2024-01-01T00:00:00-05:00", + "valid": true + }, + { + "description": "Valid - datetime without timezone", + "data": "2024-06-15T12:30:00", + "valid": true + }, + { + "description": "Valid - datetime with fractional seconds", + "data": "2024-01-01T12:00:00.123Z", + "valid": true + }, + { + "description": "Invalid - date only (no time)", + "data": "2023-12-31", + "valid": false + }, + { + "description": "Invalid - year 0000", + "data": "0000-01-01T00:00:00", + "valid": false + }, + { + "description": "Invalid - number type", + "data": 20231231, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/domain-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/domain-item-type.test.json new file mode 100644 index 00000000..5aeb1b38 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/domain-item-type.test.json @@ -0,0 +1,26 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/domain-item-type.json", + "tests": [ + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Invalid - non-empty string", + "data": "domain", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - number type", + "data": 0, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/electric-charge-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/electric-charge-item-type.test.json new file mode 100644 index 00000000..7aef6d5a --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/electric-charge-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/electric-charge-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/electric-current-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/electric-current-item-type.test.json new file mode 100644 index 00000000..bfb86422 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/electric-current-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/electric-current-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/energy-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/energy-item-type.test.json new file mode 100644 index 00000000..babcd00d --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/energy-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/energy-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.test.json new file mode 100644 index 00000000..43bf9ca2 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/energy-per-monetary-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/escaped-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/escaped-item-type.test.json new file mode 100644 index 00000000..d818dc24 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/escaped-item-type.test.json @@ -0,0 +1,31 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/escaped-item-type.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/flow-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/flow-item-type.test.json new file mode 100644 index 00000000..81cae512 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/flow-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/flow-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/force-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/force-item-type.test.json new file mode 100644 index 00000000..ee95aac2 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/force-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/force-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/frequency-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/frequency-item-type.test.json new file mode 100644 index 00000000..b18fa532 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/frequency-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/frequency-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.test.json new file mode 100644 index 00000000..73132bfe --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.test.json new file mode 100644 index 00000000..c7c74dca --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/ghg-emissions-per-monetary-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/guidance-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/guidance-item-type.test.json new file mode 100644 index 00000000..f0aa0e36 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/guidance-item-type.test.json @@ -0,0 +1,31 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/guidance-item-type.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/gyear-list-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/gyear-list-item-type.test.json new file mode 100644 index 00000000..9e88c778 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/gyear-list-item-type.test.json @@ -0,0 +1,51 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/gyear-list-item-type.json", + "tests": [ + { + "description": "Valid - single year", + "data": [ "2023" ], + "valid": true + }, + { + "description": "Valid - multiple years", + "data": [ "2020", "2021", "2022" ], + "valid": true + }, + { + "description": "Valid - years with timezone", + "data": [ "2023Z", "2024+01:00" ], + "valid": true + }, + { + "description": "Valid - negative year", + "data": [ "-1999" ], + "valid": true + }, + { + "description": "Valid - empty array", + "data": [], + "valid": true + }, + { + "description": "Invalid - year 0000", + "data": [ "0000" ], + "valid": false + }, + { + "description": "Invalid - non-string year", + "data": [ 2023 ], + "valid": false + }, + { + "description": "Invalid - not an array", + "data": "2023", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/insolation-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/insolation-item-type.test.json new file mode 100644 index 00000000..11ee89f8 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/insolation-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/insolation-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/irradiance-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/irradiance-item-type.test.json new file mode 100644 index 00000000..49b97912 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/irradiance-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/irradiance-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/length-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/length-item-type.test.json new file mode 100644 index 00000000..32e90af8 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/length-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/length-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/mass-flow-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/mass-flow-item-type.test.json new file mode 100644 index 00000000..611bae1a --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/mass-flow-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/mass-flow-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/mass-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/mass-item-type.test.json new file mode 100644 index 00000000..5da0a7f7 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/mass-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/mass-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/memory-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/memory-item-type.test.json new file mode 100644 index 00000000..02880664 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/memory-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/memory-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.test.json new file mode 100644 index 00000000..17b2b051 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-area-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.test.json new file mode 100644 index 00000000..c36cc5e1 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-duration-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.test.json new file mode 100644 index 00000000..1a898929 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-energy-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.test.json new file mode 100644 index 00000000..11163644 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-length-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.test.json new file mode 100644 index 00000000..8d71e128 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-mass-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.test.json new file mode 100644 index 00000000..a6416fc9 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/monetary-per-volume-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.test.json new file mode 100644 index 00000000..c2d100f1 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.test.json @@ -0,0 +1,89 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/no-decimals-monetary-item-type.json", + "tests": [ + { + "description": "Valid - positive integer monetary value", + "data": { + "value": 100, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - negative integer monetary value", + "data": { + "value": -25, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - zero", + "data": { + "value": 0, + "currency": "GBP" + }, + "valid": true + }, + { + "description": "Valid - large integer", + "data": { + "value": 999999999, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Invalid - decimal value with cents", + "data": { + "value": 100.5, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - small decimal", + "data": { + "value": 0.01, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": { + "value": -10.99, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - missing currency", + "data": { + "value": 100 + }, + "valid": false + }, + { + "description": "Invalid - missing value", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - string value", + "data": { + "value": "100", + "currency": "USD" + }, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.test.json new file mode 100644 index 00000000..2f0fd7c2 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.test.json @@ -0,0 +1,31 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/no-lang-string-item-type.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.test.json new file mode 100644 index 00000000..148249d1 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.test.json @@ -0,0 +1,26 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/no-lang-token-item-type.json", + "tests": [ + { + "description": "Valid - simple token", + "data": "token123", + "valid": true + }, + { + "description": "Valid - another token", + "data": "IDENTIFIER", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.test.json new file mode 100644 index 00000000..f469137a --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.test.json @@ -0,0 +1,89 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/non-negative-monetary-item-type.json", + "tests": [ + { + "description": "Valid - positive monetary value", + "data": { + "value": 100.5, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - zero", + "data": { + "value": 0, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - decimal value", + "data": { + "value": 25.75, + "currency": "GBP" + }, + "valid": true + }, + { + "description": "Valid - large positive value", + "data": { + "value": 1000000.0, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Valid - very small positive value", + "data": { + "value": 0.01, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Invalid - negative value", + "data": { + "value": -10.5, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative integer", + "data": { + "value": -1, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - large negative value", + "data": { + "value": -1000000.0, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - missing currency", + "data": { + "value": 100 + }, + "valid": false + }, + { + "description": "Invalid - missing value", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.test.json new file mode 100644 index 00000000..c8db71c0 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.test.json @@ -0,0 +1,97 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/non-negative-no-decimals-monetary-item-type.json", + "tests": [ + { + "description": "Valid - positive integer monetary value", + "data": { + "value": 100, + "currency": "USD" + }, + "valid": true + }, + { + "description": "Valid - zero", + "data": { + "value": 0, + "currency": "EUR" + }, + "valid": true + }, + { + "description": "Valid - large positive integer", + "data": { + "value": 999999999, + "currency": "JPY" + }, + "valid": true + }, + { + "description": "Invalid - negative integer value", + "data": { + "value": -10, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative large integer", + "data": { + "value": -999999, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - positive decimal value (has cents)", + "data": { + "value": 100.5, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - small positive decimal", + "data": { + "value": 0.01, + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - negative decimal", + "data": { + "value": -10.99, + "currency": "EUR" + }, + "valid": false + }, + { + "description": "Invalid - missing currency", + "data": { + "value": 100 + }, + "valid": false + }, + { + "description": "Invalid - missing value", + "data": { + "currency": "USD" + }, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - string value", + "data": { + "value": "100", + "currency": "USD" + }, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/per-share-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/per-share-item-type.test.json new file mode 100644 index 00000000..340c172e --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/per-share-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/per-share-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/percent-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/percent-item-type.test.json new file mode 100644 index 00000000..8f9cd1da --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/percent-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/percent-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/plane-angle-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/plane-angle-item-type.test.json new file mode 100644 index 00000000..3495e29a --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/plane-angle-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/plane-angle-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/power-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/power-item-type.test.json new file mode 100644 index 00000000..3a5b7113 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/power-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/power-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.test.json new file mode 100644 index 00000000..d47ed9b6 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.test.json @@ -0,0 +1,26 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/prefixed-content-item-type.json", + "tests": [ + { + "description": "Valid - simple token", + "data": "token123", + "valid": true + }, + { + "description": "Valid - another token", + "data": "IDENTIFIER", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/pressure-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/pressure-item-type.test.json new file mode 100644 index 00000000..f7768d68 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/pressure-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/pressure-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/speed-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/speed-item-type.test.json new file mode 100644 index 00000000..ee321d91 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/speed-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/speed-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/sqname-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/sqname-item-type.test.json new file mode 100644 index 00000000..d41aa035 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/sqname-item-type.test.json @@ -0,0 +1,81 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/sqname-item-type.json", + "tests": [ + { + "description": "Valid - simple QName", + "data": "xbrli:monetary", + "valid": true + }, + { + "description": "Valid - currency code QName", + "data": "iso4217:USD", + "valid": true + }, + { + "description": "Valid - custom prefix", + "data": "custom:MyElement", + "valid": true + }, + { + "description": "Valid - underscore in prefix", + "data": "my_prefix:element", + "valid": true + }, + { + "description": "Valid - hyphen in local part", + "data": "ns:my-element", + "valid": true + }, + { + "description": "Valid - single character prefix", + "data": "a:element", + "valid": true + }, + { + "description": "Invalid - no colon separator", + "data": "xbrlimonetary", + "valid": false + }, + { + "description": "Invalid - starts with number", + "data": "123:element", + "valid": false + }, + { + "description": "Invalid - starts with colon", + "data": ":element", + "valid": false + }, + { + "description": "Invalid - contains space in prefix", + "data": "my prefix:element", + "valid": false + }, + { + "description": "Invalid - contains space after colon", + "data": "xbrli: monetary", + "valid": false + }, + { + "description": "Valid - multiple colons in local part allowed", + "data": "ns:my:element", + "valid": true + }, + { + "description": "Invalid - empty local part", + "data": "ns:", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/sqnames-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/sqnames-item-type.test.json new file mode 100644 index 00000000..a3bba276 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/sqnames-item-type.test.json @@ -0,0 +1,61 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/sqnames-item-type.json", + "tests": [ + { + "description": "Valid - single QName", + "data": [ "xbrli:monetary" ], + "valid": true + }, + { + "description": "Valid - multiple QNames", + "data": [ "iso4217:USD", "custom:MyElement" ], + "valid": true + }, + { + "description": "Valid - three QNames", + "data": [ "ns1:foo", "ns2:bar", "ns3:baz" ], + "valid": true + }, + { + "description": "Valid - empty array", + "data": [], + "valid": true + }, + { + "description": "Valid - QNames with colons in local part", + "data": [ "ns:my:element", "prefix:a:b:c" ], + "valid": true + }, + { + "description": "Invalid - array with non-QName string", + "data": [ "xbrlimonetary", "custom:Element" ], + "valid": false + }, + { + "description": "Invalid - array with item starting with number", + "data": [ "123:element", "ns:foo" ], + "valid": false + }, + { + "description": "Invalid - not an array", + "data": "xbrli:monetary", + "valid": false + }, + { + "description": "Invalid - array with null item", + "data": [ "xbrli:monetary", null ], + "valid": false + }, + { + "description": "Invalid - array with number item", + "data": [ "xbrli:monetary", 123 ], + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/temperature-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/temperature-item-type.test.json new file mode 100644 index 00000000..a885d71b --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/temperature-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/temperature-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/text-block-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/text-block-item-type.test.json new file mode 100644 index 00000000..6cce2a66 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/text-block-item-type.test.json @@ -0,0 +1,31 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/text-block-item-type.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/voltage-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/voltage-item-type.test.json new file mode 100644 index 00000000..8bd2035b --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/voltage-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/voltage-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/volume-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/volume-item-type.test.json new file mode 100644 index 00000000..4230546d --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/volume-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/volume-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.test.json new file mode 100644 index 00000000..c2958baf --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/volume-per-monetary-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/weight-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/weight-item-type.test.json new file mode 100644 index 00000000..28c4efe6 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/weight-item-type.test.json @@ -0,0 +1,36 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/weight-item-type.json", + "tests": [ + { + "description": "Valid - positive decimal", + "data": 100.5, + "valid": true + }, + { + "description": "Valid - negative decimal", + "data": -25.75, + "valid": true + }, + { + "description": "Valid - zero", + "data": 0, + "valid": true + }, + { + "description": "Valid - large number", + "data": 1000000.0, + "valid": true + }, + { + "description": "Invalid - string type", + "data": "100.5", + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/xml-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/xml-item-type.test.json new file mode 100644 index 00000000..47144f0e --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/xml-item-type.test.json @@ -0,0 +1,31 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/xml-item-type.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +} diff --git a/test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.test.json b/test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.test.json new file mode 100644 index 00000000..63883045 --- /dev/null +++ b/test/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.test.json @@ -0,0 +1,31 @@ +{ + "x-license": "https://github.com/sourcemeta/std/blob/main/LICENSE", + "target": "../../../../../schemas/xbrl/dtr/type/2024-01-31/xml-nodes-item-type.json", + "tests": [ + { + "description": "Valid - simple string", + "data": "Some text content", + "valid": true + }, + { + "description": "Valid - empty string", + "data": "", + "valid": true + }, + { + "description": "Valid - long text", + "data": "This is a longer text example", + "valid": true + }, + { + "description": "Invalid - number type", + "data": 123, + "valid": false + }, + { + "description": "Invalid - null", + "data": null, + "valid": false + } + ] +}