diff --git a/meta/schemas-root.json b/meta/schemas-root.json index dbdaa99c..33406a24 100644 --- a/meta/schemas-root.json +++ b/meta/schemas-root.json @@ -1,5 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Root schema meta-schema", + "description": "Meta-schema for validating root-level schemas", "type": "object", "anyOf": [ { @@ -21,14 +23,7 @@ } } ], - "required": [ - "x-license", - "title", - "description", - "examples", - "x-links", - "$schema" - ], + "required": [ "x-license", "examples", "x-links", "$schema" ], "properties": { "$schema": { "const": "https://json-schema.org/draft/2020-12/schema" @@ -51,6 +46,9 @@ "items": { "$ref": "../schemas/2020-12/ietf/http/https-url.json" } + }, + "examples": { + "type": "array" } } } diff --git a/meta/schemas.json b/meta/schemas.json index 0bb29f4a..76e5b759 100644 --- a/meta/schemas.json +++ b/meta/schemas.json @@ -1,6 +1,8 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", "$dynamicAnchor": "meta", + "title": "Schema meta-schema", + "description": "Meta-schema for validating all schemas", "$ref": "https://json-schema.org/draft/2020-12/schema", "properties": { "$id": false, diff --git a/meta/test.json b/meta/test.json index ff8bbff1..cac6f505 100644 --- a/meta/test.json +++ b/meta/test.json @@ -1,5 +1,7 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", + "title": "Test meta-schema", + "description": "Meta-schema for validating test files", "type": "object", "required": [ "x-license", "tests" ], "properties": { diff --git a/package-lock.json b/package-lock.json index 941be1ae..73c76523 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,16 +9,16 @@ "version": "0.3.1", "license": "UNLICENSED", "devDependencies": { - "@sourcemeta/jsonschema": "^12.10.1" + "@sourcemeta/jsonschema": "^13.1.0" }, "funding": { "url": "https://github.com/sponsors/sourcemeta" } }, "node_modules/@sourcemeta/jsonschema": { - "version": "12.10.1", - "resolved": "https://registry.npmjs.org/@sourcemeta/jsonschema/-/jsonschema-12.10.1.tgz", - "integrity": "sha512-hhLxVnmI+V6qq6A2J4HXEP7yhBZn1G8yhTc8CbtBqYg2rNbYyeKjSEyl6wN39sZrA2ubCi9VtNx9AopWXYJ5eA==", + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/@sourcemeta/jsonschema/-/jsonschema-13.1.0.tgz", + "integrity": "sha512-jTubqHrW2+bt0bjUcI8TNAIToNKH0T6k54ERoC93+yB2EMgQ2mWMvB2f5eIia/IC4XYOkz5zChWKo5mv09+T+w==", "cpu": [ "x64", "arm64" diff --git a/package.json b/package.json index e94f2cdf..114cda26 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,6 @@ "access": "public" }, "devDependencies": { - "@sourcemeta/jsonschema": "^12.10.1" + "@sourcemeta/jsonschema": "^13.1.0" } } diff --git a/schemas/2020-12/xbrl/utr/area-item-type-normative.json b/schemas/2020-12/xbrl/utr/area-item-type-normative.json index fef569da..1e2ce600 100644 --- a/schemas/2020-12/xbrl/utr/area-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/area-item-type-normative.json @@ -10,14 +10,12 @@ ], "anyOf": [ { - "title": "Acre", "description": "Acre", "x-status": "REC", "x-symbol": "a", "const": "acre" }, { - "title": "Square Foot", "description": "Square Foot", "x-status": "REC", "x-symbol": "ft²", @@ -31,14 +29,12 @@ "const": "sqmi" }, { - "title": "Square Yard", "description": "Square Yard", "x-status": "REC", "x-symbol": "yd²", "const": "sqyd" }, { - "title": "Hectare", "description": "Hectare", "x-status": "REC", "x-symbol": "ha", diff --git a/schemas/2020-12/xbrl/utr/area-item-type.json b/schemas/2020-12/xbrl/utr/area-item-type.json index fef569da..1e2ce600 100644 --- a/schemas/2020-12/xbrl/utr/area-item-type.json +++ b/schemas/2020-12/xbrl/utr/area-item-type.json @@ -10,14 +10,12 @@ ], "anyOf": [ { - "title": "Acre", "description": "Acre", "x-status": "REC", "x-symbol": "a", "const": "acre" }, { - "title": "Square Foot", "description": "Square Foot", "x-status": "REC", "x-symbol": "ft²", @@ -31,14 +29,12 @@ "const": "sqmi" }, { - "title": "Square Yard", "description": "Square Yard", "x-status": "REC", "x-symbol": "yd²", "const": "sqyd" }, { - "title": "Hectare", "description": "Hectare", "x-status": "REC", "x-symbol": "ha", diff --git a/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.json b/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.json index 2a23cc2c..4b709189 100644 --- a/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.json @@ -10,7 +10,6 @@ ], "anyOf": [ { - "title": "Ampere", "description": "Ampere", "x-status": "REC", "x-symbol": "A", diff --git a/schemas/2020-12/xbrl/utr/electric-current-item-type.json b/schemas/2020-12/xbrl/utr/electric-current-item-type.json index 2a23cc2c..4b709189 100644 --- a/schemas/2020-12/xbrl/utr/electric-current-item-type.json +++ b/schemas/2020-12/xbrl/utr/electric-current-item-type.json @@ -10,7 +10,6 @@ ], "anyOf": [ { - "title": "Ampere", "description": "Ampere", "x-status": "REC", "x-symbol": "A", diff --git a/schemas/2020-12/xbrl/utr/energy-item-type-normative.json b/schemas/2020-12/xbrl/utr/energy-item-type-normative.json index f8c48742..3032807f 100644 --- a/schemas/2020-12/xbrl/utr/energy-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/energy-item-type-normative.json @@ -10,14 +10,12 @@ ], "anyOf": [ { - "title": "Barrel of Oil Equivalent", "description": "Barrel of Oil Equivalent", "x-status": "REC", "x-symbol": "Boe", "const": "Boe" }, { - "title": "British Thermal Unit", "description": "British Thermal Unit", "x-status": "REC", "x-symbol": "BTU", @@ -31,42 +29,36 @@ "const": "ft_lb" }, { - "title": "Thousand Barrels of Oil Equivalent", "description": "Thousand Barrels of Oil Equivalent", "x-status": "REC", "x-symbol": "MBoe", "const": "MBoe" }, { - "title": "Thousand Cubic Foot Equivalent", "description": "Thousand Cubic Foot Equivalent", "x-status": "REC", "x-symbol": "Mcfe", "const": "Mcfe" }, { - "title": "Millions of Barrels of Oil Equivalent", "description": "Millions of Barrels of Oil Equivalent", "x-status": "REC", "x-symbol": "MMBoe", "const": "MMBoe" }, { - "title": "Millions of BTU", "description": "Millions of BTU", "x-status": "REC", "x-symbol": "MMBTU", "const": "MMBTU" }, { - "title": "Calorie", "description": "Calorie", "x-status": "REC", "x-symbol": "Cal", "const": "Cal" }, { - "title": "Joule", "description": "Joule", "x-status": "REC", "x-symbol": "J", @@ -94,21 +86,18 @@ "const": "mJ" }, { - "title": "Megawatt-Hour", "description": "Megawatt-Hour", "x-status": "REC", "x-symbol": "MWh", "const": "MWh" }, { - "title": "Gigawatt-Hour", "description": "Gigawatt-Hour", "x-status": "REC", "x-symbol": "GWh", "const": "GWh" }, { - "title": "Terawatt-Hour", "description": "Terawatt-Hour", "x-status": "REC", "x-symbol": "TWh", diff --git a/schemas/2020-12/xbrl/utr/energy-item-type.json b/schemas/2020-12/xbrl/utr/energy-item-type.json index f8c48742..3032807f 100644 --- a/schemas/2020-12/xbrl/utr/energy-item-type.json +++ b/schemas/2020-12/xbrl/utr/energy-item-type.json @@ -10,14 +10,12 @@ ], "anyOf": [ { - "title": "Barrel of Oil Equivalent", "description": "Barrel of Oil Equivalent", "x-status": "REC", "x-symbol": "Boe", "const": "Boe" }, { - "title": "British Thermal Unit", "description": "British Thermal Unit", "x-status": "REC", "x-symbol": "BTU", @@ -31,42 +29,36 @@ "const": "ft_lb" }, { - "title": "Thousand Barrels of Oil Equivalent", "description": "Thousand Barrels of Oil Equivalent", "x-status": "REC", "x-symbol": "MBoe", "const": "MBoe" }, { - "title": "Thousand Cubic Foot Equivalent", "description": "Thousand Cubic Foot Equivalent", "x-status": "REC", "x-symbol": "Mcfe", "const": "Mcfe" }, { - "title": "Millions of Barrels of Oil Equivalent", "description": "Millions of Barrels of Oil Equivalent", "x-status": "REC", "x-symbol": "MMBoe", "const": "MMBoe" }, { - "title": "Millions of BTU", "description": "Millions of BTU", "x-status": "REC", "x-symbol": "MMBTU", "const": "MMBTU" }, { - "title": "Calorie", "description": "Calorie", "x-status": "REC", "x-symbol": "Cal", "const": "Cal" }, { - "title": "Joule", "description": "Joule", "x-status": "REC", "x-symbol": "J", @@ -94,21 +86,18 @@ "const": "mJ" }, { - "title": "Megawatt-Hour", "description": "Megawatt-Hour", "x-status": "REC", "x-symbol": "MWh", "const": "MWh" }, { - "title": "Gigawatt-Hour", "description": "Gigawatt-Hour", "x-status": "REC", "x-symbol": "GWh", "const": "GWh" }, { - "title": "Terawatt-Hour", "description": "Terawatt-Hour", "x-status": "REC", "x-symbol": "TWh", diff --git a/schemas/2020-12/xbrl/utr/length-item-type-normative.json b/schemas/2020-12/xbrl/utr/length-item-type-normative.json index ebbdd137..d2fce36b 100644 --- a/schemas/2020-12/xbrl/utr/length-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/length-item-type-normative.json @@ -17,7 +17,6 @@ "const": "ft" }, { - "title": "Inch", "description": "Inch", "x-status": "REC", "x-symbol": "in", @@ -52,7 +51,6 @@ "const": "cm" }, { - "title": "Decimetre", "description": "Decimetre", "x-status": "REC", "x-symbol": "dm", @@ -66,7 +64,6 @@ "const": "km" }, { - "title": "Metre", "description": "Metre", "x-status": "REC", "x-symbol": "m", diff --git a/schemas/2020-12/xbrl/utr/length-item-type.json b/schemas/2020-12/xbrl/utr/length-item-type.json index ebbdd137..d2fce36b 100644 --- a/schemas/2020-12/xbrl/utr/length-item-type.json +++ b/schemas/2020-12/xbrl/utr/length-item-type.json @@ -17,7 +17,6 @@ "const": "ft" }, { - "title": "Inch", "description": "Inch", "x-status": "REC", "x-symbol": "in", @@ -52,7 +51,6 @@ "const": "cm" }, { - "title": "Decimetre", "description": "Decimetre", "x-status": "REC", "x-symbol": "dm", @@ -66,7 +64,6 @@ "const": "km" }, { - "title": "Metre", "description": "Metre", "x-status": "REC", "x-symbol": "m", diff --git a/schemas/2020-12/xbrl/utr/mass-item-type-normative.json b/schemas/2020-12/xbrl/utr/mass-item-type-normative.json index 1ecf3fdf..5a7abbab 100644 --- a/schemas/2020-12/xbrl/utr/mass-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/mass-item-type-normative.json @@ -24,7 +24,6 @@ "const": "oz" }, { - "title": "Troy Ounce", "description": "Troy Ounce", "x-status": "REC", "x-symbol": "ozt", @@ -45,14 +44,12 @@ "const": "t" }, { - "title": "Gram", "description": "Gram", "x-status": "REC", "x-symbol": "g", "const": "g" }, { - "title": "Kilogram", "description": "Kilogram", "x-status": "REC", "x-symbol": "kg", diff --git a/schemas/2020-12/xbrl/utr/mass-item-type.json b/schemas/2020-12/xbrl/utr/mass-item-type.json index 1ecf3fdf..5a7abbab 100644 --- a/schemas/2020-12/xbrl/utr/mass-item-type.json +++ b/schemas/2020-12/xbrl/utr/mass-item-type.json @@ -24,7 +24,6 @@ "const": "oz" }, { - "title": "Troy Ounce", "description": "Troy Ounce", "x-status": "REC", "x-symbol": "ozt", @@ -45,14 +44,12 @@ "const": "t" }, { - "title": "Gram", "description": "Gram", "x-status": "REC", "x-symbol": "g", "const": "g" }, { - "title": "Kilogram", "description": "Kilogram", "x-status": "REC", "x-symbol": "kg", diff --git a/schemas/2020-12/xbrl/utr/monetary-item-type-normative.json b/schemas/2020-12/xbrl/utr/monetary-item-type-normative.json index 5d0cb3ea..98fbce28 100644 --- a/schemas/2020-12/xbrl/utr/monetary-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/monetary-item-type-normative.json @@ -17,105 +17,90 @@ "const": "AED" }, { - "title": "Afghan afghani", "description": "Afghan afghani", "x-status": "REC", "x-symbol": "؋", "const": "AFN" }, { - "title": "Albanian lek", "description": "Albanian lek", "x-status": "REC", "x-symbol": "L", "const": "ALL" }, { - "title": "Armenian dram", "description": "Armenian dram", "x-status": "REC", "x-symbol": "֏", "const": "AMD" }, { - "title": "Netherlands Antillean guilder", "description": "Netherlands Antillean guilder", "x-status": "REC", "x-symbol": "NAƒ", "const": "ANG" }, { - "title": "Angolan kwanza", "description": "Angolan kwanza", "x-status": "REC", "x-symbol": "Kz", "const": "AOA" }, { - "title": "Argentine peso", "description": "Argentine peso", "x-status": "REC", "x-symbol": "$", "const": "ARS" }, { - "title": "Australian dollar", "description": "Australian dollar", "x-status": "REC", "x-symbol": "$", "const": "AUD" }, { - "title": "Aruban florin", "description": "Aruban florin", "x-status": "REC", "x-symbol": "ƒ", "const": "AWG" }, { - "title": "Azerbaijani manat", "description": "Azerbaijani manat", "x-status": "REC", "x-symbol": "₼", "const": "AZN" }, { - "title": "Bosnia and Herzegovina convertible mark", "description": "Bosnia and Herzegovina convertible mark", "x-status": "REC", "x-symbol": "KM", "const": "BAM" }, { - "title": "Barbados dollar", "description": "Barbados dollar", "x-status": "REC", "x-symbol": "$", "const": "BBD" }, { - "title": "Bangladeshi taka", "description": "Bangladeshi taka", "x-status": "REC", "x-symbol": "৳", "const": "BDT" }, { - "title": "Bulgarian lev", "description": "Bulgarian lev", "x-status": "REC", "x-symbol": "лв", "const": "BGN" }, { - "title": "Bahraini dinar", "description": "Bahraini dinar", "x-status": "REC", "x-symbol": ".د.ب", "const": "BHD" }, { - "title": "Burundian franc", "description": "Burundian franc", "x-status": "REC", "x-symbol": "FBu", @@ -129,14 +114,12 @@ "const": "BMD" }, { - "title": "Brunei dollar", "description": "Brunei dollar", "x-status": "REC", "x-symbol": "$", "const": "BND" }, { - "title": "Boliviano", "description": "Boliviano", "x-status": "REC", "x-symbol": "Bs.", @@ -149,63 +132,54 @@ "const": "BOV" }, { - "title": "Brazilian real", "description": "Brazilian real", "x-status": "REC", "x-symbol": "R$", "const": "BRL" }, { - "title": "Bahamian dollar", "description": "Bahamian dollar", "x-status": "REC", "x-symbol": "$", "const": "BSD" }, { - "title": "Bhutanese ngultrum", "description": "Bhutanese ngultrum", "x-status": "REC", "x-symbol": "Ch.", "const": "BTN" }, { - "title": "Botswana pula", "description": "Botswana pula", "x-status": "REC", "x-symbol": "P", "const": "BWP" }, { - "title": "Belarusian ruble", "description": "Belarusian ruble", "x-status": "REC", "x-symbol": "Br", "const": "BYN" }, { - "title": "Belarusian ruble", "description": "Belarusian ruble", "x-status": "REC", "x-symbol": "Br", "const": "BYR" }, { - "title": "Belize dollar", "description": "Belize dollar", "x-status": "REC", "x-symbol": "$", "const": "BZD" }, { - "title": "Canadian dollar", "description": "Canadian dollar", "x-status": "REC", "x-symbol": "$", "const": "CAD" }, { - "title": "Congolese franc", "description": "Congolese franc", "x-status": "REC", "x-symbol": "CF", @@ -218,7 +192,6 @@ "const": "CHE" }, { - "title": "Swiss franc", "description": "Swiss franc", "x-status": "REC", "x-symbol": "SFr", @@ -237,7 +210,6 @@ "const": "CLF" }, { - "title": "Chilean peso", "description": "Chilean peso", "x-status": "REC", "x-symbol": "$", @@ -251,124 +223,106 @@ "const": "CNY" }, { - "title": "Colombian peso", "description": "Colombian peso", "x-status": "REC", "x-symbol": "$", "const": "COP" }, { - "title": "Unidad de Valor Real", "description": "Unidad de Valor Real", "x-status": "REC", "const": "COU" }, { - "title": "Costa Rican colon", "description": "Costa Rican colon", "x-status": "REC", "x-symbol": "₡", "const": "CRC" }, { - "title": "Cuban convertible peso", "description": "Cuban convertible peso", "x-status": "REC", "x-symbol": "CUC$", "const": "CUC" }, { - "title": "Cuban peso", "description": "Cuban peso", "x-status": "REC", "x-symbol": "$MN", "const": "CUP" }, { - "title": "Cape Verde escudo", "description": "Cape Verde escudo", "x-status": "REC", "x-symbol": "Esc", "const": "CVE" }, { - "title": "Czech koruna", "description": "Czech koruna", "x-status": "REC", "x-symbol": "Kč", "const": "CZK" }, { - "title": "Djiboutian franc", "description": "Djiboutian franc", "x-status": "REC", "x-symbol": "Fdj", "const": "DJF" }, { - "title": "Danish krone", "description": "Danish krone", "x-status": "REC", "x-symbol": "kr", "const": "DKK" }, { - "title": "Dominican peso", "description": "Dominican peso", "x-status": "REC", "x-symbol": "$", "const": "DOP" }, { - "title": "Algerian dinar", "description": "Algerian dinar", "x-status": "REC", "x-symbol": "دج", "const": "DZD" }, { - "title": "Estonian kroon", "description": "Estonian kroon", "x-status": "REC", "const": "EEK" }, { - "title": "Egyptian pound", "description": "Egyptian pound", "x-status": "REC", "x-symbol": "ج.م.", "const": "EGP" }, { - "title": "Eritrean nakfa", "description": "Eritrean nakfa", "x-status": "REC", "x-symbol": "Nfk", "const": "ERN" }, { - "title": "Ethiopian birr", "description": "Ethiopian birr", "x-status": "REC", "x-symbol": "Br", "const": "ETB" }, { - "title": "Euro", "description": "Euro", "x-status": "REC", "x-symbol": "€", "const": "EUR" }, { - "title": "Fiji dollar", "description": "Fiji dollar", "x-status": "REC", "x-symbol": "$", "const": "FJD" }, { - "title": "Falkland Islands pound", "description": "Falkland Islands pound", "x-status": "REC", "x-symbol": "£", @@ -382,314 +336,269 @@ "const": "GBP" }, { - "title": "Georgian lari", "description": "Georgian lari", "x-status": "REC", "x-symbol": "ლ", "const": "GEL" }, { - "title": "Ghanaian cedi", "description": "Ghanaian cedi", "x-status": "REC", "x-symbol": "GH₵", "const": "GHS" }, { - "title": "Gibraltar pound", "description": "Gibraltar pound", "x-status": "REC", "x-symbol": "£", "const": "GIP" }, { - "title": "Gambian dalasi", "description": "Gambian dalasi", "x-status": "REC", "x-symbol": "D", "const": "GMD" }, { - "title": "Guinean franc", "description": "Guinean franc", "x-status": "REC", "x-symbol": "FG", "const": "GNF" }, { - "title": "Guatemalan quetzal", "description": "Guatemalan quetzal", "x-status": "REC", "x-symbol": "Q", "const": "GTQ" }, { - "title": "Guyanese dollar", "description": "Guyanese dollar", "x-status": "REC", "x-symbol": "$", "const": "GYD" }, { - "title": "Hong Kong dollar", "description": "Hong Kong dollar", "x-status": "REC", "x-symbol": "$", "const": "HKD" }, { - "title": "Honduran lempira", "description": "Honduran lempira", "x-status": "REC", "x-symbol": "L", "const": "HNL" }, { - "title": "Croatian kuna", "description": "Croatian kuna", "x-status": "REC", "x-symbol": "kn", "const": "HRK" }, { - "title": "Haitian gourde", "description": "Haitian gourde", "x-status": "REC", "x-symbol": "G", "const": "HTG" }, { - "title": "Hungarian forint", "description": "Hungarian forint", "x-status": "REC", "x-symbol": "Ft", "const": "HUF" }, { - "title": "Indonesian rupiah", "description": "Indonesian rupiah", "x-status": "REC", "x-symbol": "Rp", "const": "IDR" }, { - "title": "Israeli new sheqel", "description": "Israeli new sheqel", "x-status": "REC", "x-symbol": "₪", "const": "ILS" }, { - "title": "Indian rupee", "description": "Indian rupee", "x-status": "REC", "x-symbol": "₨", "const": "INR" }, { - "title": "Iraqi dinar", "description": "Iraqi dinar", "x-status": "REC", "x-symbol": "د.ع", "const": "IQD" }, { - "title": "Iranian rial", "description": "Iranian rial", "x-status": "REC", "x-symbol": "﷼", "const": "IRR" }, { - "title": "Icelandic króna", "description": "Icelandic króna", "x-status": "REC", "x-symbol": "kr", "const": "ISK" }, { - "title": "Jamaican dollar", "description": "Jamaican dollar", "x-status": "REC", "x-symbol": "$", "const": "JMD" }, { - "title": "Jordanian dinar", "description": "Jordanian dinar", "x-status": "REC", "x-symbol": "JD", "const": "JOD" }, { - "title": "Japanese yen", "description": "Japanese yen", "x-status": "REC", "x-symbol": "¥", "const": "JPY" }, { - "title": "Kenyan shilling", "description": "Kenyan shilling", "x-status": "REC", "x-symbol": "Ksh", "const": "KES" }, { - "title": "Kyrgyzstani som", "description": "Kyrgyzstani som", "x-status": "REC", "x-symbol": "сом", "const": "KGS" }, { - "title": "Cambodian riel", "description": "Cambodian riel", "x-status": "REC", "x-symbol": "៛", "const": "KHR" }, { - "title": "Comoro franc", "description": "Comoro franc", "x-status": "REC", "x-symbol": "₣", "const": "KMF" }, { - "title": "North Korean won", "description": "North Korean won", "x-status": "REC", "x-symbol": "₩", "const": "KPW" }, { - "title": "South Korean won", "description": "South Korean won", "x-status": "REC", "x-symbol": "₩", "const": "KRW" }, { - "title": "Kuwaiti dinar", "description": "Kuwaiti dinar", "x-status": "REC", "x-symbol": "د.ك", "const": "KWD" }, { - "title": "Cayman Islands dollar", "description": "Cayman Islands dollar", "x-status": "REC", "x-symbol": "$", "const": "KYD" }, { - "title": "Kazakhstani tenge", "description": "Kazakhstani tenge", "x-status": "REC", "x-symbol": "₸", "const": "KZT" }, { - "title": "Lao kip", "description": "Lao kip", "x-status": "REC", "x-symbol": "₭", "const": "LAK" }, { - "title": "Lebanese pound", "description": "Lebanese pound", "x-status": "REC", "x-symbol": "LL", "const": "LBP" }, { - "title": "Sri Lanka rupee", "description": "Sri Lanka rupee", "x-status": "REC", "x-symbol": "රු", "const": "LKR" }, { - "title": "Liberian dollar", "description": "Liberian dollar", "x-status": "REC", "x-symbol": "$", "const": "LRD" }, { - "title": "Lesotho loti", "description": "Lesotho loti", "x-status": "REC", "x-symbol": "M", "const": "LSL" }, { - "title": "Lithuanian litas", "description": "Lithuanian litas", "x-status": "REC", "x-symbol": "Lt", "const": "LTL" }, { - "title": "Latvian lats", "description": "Latvian lats", "x-status": "REC", "x-symbol": "Ls", "const": "LVL" }, { - "title": "Libyan dinar", "description": "Libyan dinar", "x-status": "REC", "x-symbol": "ل.د", "const": "LYD" }, { - "title": "Moroccan dirham", "description": "Moroccan dirham", "x-status": "REC", "x-symbol": "د.م.", "const": "MAD" }, { - "title": "Moldovan leu", "description": "Moldovan leu", "x-status": "REC", "const": "MDL" }, { - "title": "Malagasy ariary", "description": "Malagasy ariary", "x-status": "REC", "x-symbol": "Ar", "const": "MGA" }, { - "title": "Macedonian denar", "description": "Macedonian denar", "x-status": "REC", "x-symbol": "ден", "const": "MKD" }, { - "title": "Myanma kyat", "description": "Myanma kyat", "x-status": "REC", "x-symbol": "K", "const": "MMK" }, { - "title": "Mongolian tugrik", "description": "Mongolian tugrik", "x-status": "REC", "x-symbol": "₮", "const": "MNT" }, { - "title": "Macanese pataca", "description": "Macanese pataca", "x-status": "REC", "x-symbol": "MOP$", @@ -703,28 +612,24 @@ "const": "MRO" }, { - "title": "Mauritian rupee", "description": "Mauritian rupee", "x-status": "REC", "x-symbol": "₨", "const": "MUR" }, { - "title": "Maldivian rufiyaa", "description": "Maldivian rufiyaa", "x-status": "REC", "x-symbol": "Rf.", "const": "MVR" }, { - "title": "Malawian kwacha", "description": "Malawian kwacha", "x-status": "REC", "x-symbol": "MK", "const": "MWK" }, { - "title": "Mexican peso", "description": "Mexican peso", "x-status": "REC", "x-symbol": "$", @@ -737,132 +642,113 @@ "const": "MXV" }, { - "title": "Malaysian ringgit", "description": "Malaysian ringgit", "x-status": "REC", "x-symbol": "RM", "const": "MYR" }, { - "title": "Mozambican metical", "description": "Mozambican metical", "x-status": "REC", "x-symbol": "MT", "const": "MZN" }, { - "title": "Namibian dollar", "description": "Namibian dollar", "x-status": "REC", "x-symbol": "$", "const": "NAD" }, { - "title": "Nigerian naira", "description": "Nigerian naira", "x-status": "REC", "x-symbol": "₦", "const": "NGN" }, { - "title": "Cordoba oro", "description": "Cordoba oro", "x-status": "REC", "x-symbol": "C$", "const": "NIO" }, { - "title": "Norwegian krone", "description": "Norwegian krone", "x-status": "REC", "x-symbol": "kr", "const": "NOK" }, { - "title": "Nepalese rupee", "description": "Nepalese rupee", "x-status": "REC", "x-symbol": "₨", "const": "NPR" }, { - "title": "New Zealand dollar", "description": "New Zealand dollar", "x-status": "REC", "x-symbol": "$", "const": "NZD" }, { - "title": "Omani rial", "description": "Omani rial", "x-status": "REC", "x-symbol": "ر.ع.", "const": "OMR" }, { - "title": "Panamanian balboa", "description": "Panamanian balboa", "x-status": "REC", "x-symbol": "B/.", "const": "PAB" }, { - "title": "Peruvian nuevo sol", "description": "Peruvian nuevo sol", "x-status": "REC", "x-symbol": "S/", "const": "PEN" }, { - "title": "Papua New Guinean kina", "description": "Papua New Guinean kina", "x-status": "REC", "x-symbol": "K", "const": "PGK" }, { - "title": "Philippine peso", "description": "Philippine peso", "x-status": "REC", "x-symbol": "₱", "const": "PHP" }, { - "title": "Pakistani rupee", "description": "Pakistani rupee", "x-status": "REC", "x-symbol": "₨", "const": "PKR" }, { - "title": "Polish złoty", "description": "Polish złoty", "x-status": "REC", "x-symbol": "zł", "const": "PLN" }, { - "title": "Paraguayan guaraní", "description": "Paraguayan guaraní", "x-status": "REC", "x-symbol": "₲", "const": "PYG" }, { - "title": "Qatari rial", "description": "Qatari rial", "x-status": "REC", "x-symbol": "ر.ق", "const": "QAR" }, { - "title": "Romanian new leu", "description": "Romanian new leu", "x-status": "REC", "const": "RON" }, { - "title": "Serbian dinar", "description": "Serbian dinar", "x-status": "REC", "x-symbol": "дин", @@ -876,7 +762,6 @@ "const": "RUB" }, { - "title": "Rwandan franc", "description": "Rwandan franc", "x-status": "REC", "x-symbol": "FRw", @@ -890,21 +775,18 @@ "const": "SAR" }, { - "title": "Solomon Islands dollar", "description": "Solomon Islands dollar", "x-status": "REC", "x-symbol": "$", "const": "SBD" }, { - "title": "Seychelles rupee", "description": "Seychelles rupee", "x-status": "REC", "x-symbol": "SRe", "const": "SCR" }, { - "title": "Sudanese pound", "description": "Sudanese pound", "x-status": "REC", "const": "SDG" @@ -917,14 +799,12 @@ "const": "SEK" }, { - "title": "Singapore dollar", "description": "Singapore dollar", "x-status": "REC", "x-symbol": "$", "const": "SGD" }, { - "title": "Saint Helena pound", "description": "Saint Helena pound", "x-status": "REC", "x-symbol": "£", @@ -938,41 +818,35 @@ "const": "SLL" }, { - "title": "Somali shilling", "description": "Somali shilling", "x-status": "REC", "x-symbol": "Sh.So", "const": "SOS" }, { - "title": "Surinamese dollar", "description": "Surinamese dollar", "x-status": "REC", "x-symbol": "$", "const": "SRD" }, { - "title": "South Sudanese pound", "description": "South Sudanese pound", "x-status": "REC", "const": "SSP" }, { - "title": "São Tomé and Príncipe dobra", "description": "São Tomé and Príncipe dobra", "x-status": "REC", "x-symbol": "Db", "const": "STD" }, { - "title": "Salvadoran colón", "description": "Salvadoran colón", "x-status": "REC", "x-symbol": "₡", "const": "SVC" }, { - "title": "Syrian pound", "description": "Syrian pound", "x-status": "REC", "x-symbol": "LS", @@ -993,19 +867,16 @@ "const": "THB" }, { - "title": "Tajikistani somoni", "description": "Tajikistani somoni", "x-status": "REC", "const": "TJS" }, { - "title": "Turkmenistani manat", "description": "Turkmenistani manat", "x-status": "REC", "const": "TMT" }, { - "title": "Tunisian dinar", "description": "Tunisian dinar", "x-status": "REC", "x-symbol": "د.ت", @@ -1019,28 +890,24 @@ "const": "TOP" }, { - "title": "Turkish lira", "description": "Turkish lira", "x-status": "REC", "x-symbol": "₺", "const": "TRY" }, { - "title": "Trinidad and Tobago dollar", "description": "Trinidad and Tobago dollar", "x-status": "REC", "x-symbol": "$", "const": "TTD" }, { - "title": "New Taiwan dollar", "description": "New Taiwan dollar", "x-status": "REC", "x-symbol": "$", "const": "TWD" }, { - "title": "Tanzanian shilling", "description": "Tanzanian shilling", "x-status": "REC", "x-symbol": "Tsh", @@ -1054,7 +921,6 @@ "const": "UAH" }, { - "title": "Ugandan shilling", "description": "Ugandan shilling", "x-status": "REC", "x-symbol": "USh", @@ -1088,7 +954,6 @@ "const": "UYI" }, { - "title": "Uruguayan peso", "description": "Uruguayan peso", "x-status": "REC", "x-symbol": "$", @@ -1122,14 +987,12 @@ "const": "VND" }, { - "title": "Vanuatu vatu", "description": "Vanuatu vatu", "x-status": "REC", "x-symbol": "VT", "const": "VUV" }, { - "title": "Samoan tala", "description": "Samoan tala", "x-status": "REC", "x-symbol": "WS$", @@ -1178,14 +1041,12 @@ "const": "XBD" }, { - "title": "East Caribbean dollar", "description": "East Caribbean dollar", "x-status": "REC", "x-symbol": "$", "const": "XCD" }, { - "title": "Special Drawing Rights", "description": "Special Drawing Rights", "x-status": "REC", "const": "XDR" @@ -1197,7 +1058,6 @@ "const": "XFU" }, { - "title": "CFA Franc BCEAO", "description": "CFA Franc BCEAO", "x-status": "REC", "const": "XOF" @@ -1234,27 +1094,23 @@ "const": "XUA" }, { - "title": "Yemeni rial", "description": "Yemeni rial", "x-status": "REC", "const": "YER" }, { - "title": "South African rand", "description": "South African rand", "x-status": "REC", "x-symbol": "R", "const": "ZAR" }, { - "title": "Zambian kwacha", "description": "Zambian kwacha", "x-status": "REC", "x-symbol": "ZK", "const": "ZMK" }, { - "title": "Zambian kwacha", "description": "Zambian kwacha", "x-status": "REC", "x-symbol": "ZK", @@ -1268,7 +1124,6 @@ "const": "ZWG" }, { - "title": "Zimbabwe dollar", "description": "Zimbabwe dollar", "x-status": "REC", "x-symbol": "$", diff --git a/schemas/2020-12/xbrl/utr/monetary-item-type.json b/schemas/2020-12/xbrl/utr/monetary-item-type.json index 00311c47..bff466b0 100644 --- a/schemas/2020-12/xbrl/utr/monetary-item-type.json +++ b/schemas/2020-12/xbrl/utr/monetary-item-type.json @@ -17,105 +17,90 @@ "const": "AED" }, { - "title": "Afghan afghani", "description": "Afghan afghani", "x-status": "REC", "x-symbol": "؋", "const": "AFN" }, { - "title": "Albanian lek", "description": "Albanian lek", "x-status": "REC", "x-symbol": "L", "const": "ALL" }, { - "title": "Armenian dram", "description": "Armenian dram", "x-status": "REC", "x-symbol": "֏", "const": "AMD" }, { - "title": "Netherlands Antillean guilder", "description": "Netherlands Antillean guilder", "x-status": "REC", "x-symbol": "NAƒ", "const": "ANG" }, { - "title": "Angolan kwanza", "description": "Angolan kwanza", "x-status": "REC", "x-symbol": "Kz", "const": "AOA" }, { - "title": "Argentine peso", "description": "Argentine peso", "x-status": "REC", "x-symbol": "$", "const": "ARS" }, { - "title": "Australian dollar", "description": "Australian dollar", "x-status": "REC", "x-symbol": "$", "const": "AUD" }, { - "title": "Aruban florin", "description": "Aruban florin", "x-status": "REC", "x-symbol": "ƒ", "const": "AWG" }, { - "title": "Azerbaijani manat", "description": "Azerbaijani manat", "x-status": "REC", "x-symbol": "₼", "const": "AZN" }, { - "title": "Bosnia and Herzegovina convertible mark", "description": "Bosnia and Herzegovina convertible mark", "x-status": "REC", "x-symbol": "KM", "const": "BAM" }, { - "title": "Barbados dollar", "description": "Barbados dollar", "x-status": "REC", "x-symbol": "$", "const": "BBD" }, { - "title": "Bangladeshi taka", "description": "Bangladeshi taka", "x-status": "REC", "x-symbol": "৳", "const": "BDT" }, { - "title": "Bulgarian lev", "description": "Bulgarian lev", "x-status": "REC", "x-symbol": "лв", "const": "BGN" }, { - "title": "Bahraini dinar", "description": "Bahraini dinar", "x-status": "REC", "x-symbol": ".د.ب", "const": "BHD" }, { - "title": "Burundian franc", "description": "Burundian franc", "x-status": "REC", "x-symbol": "FBu", @@ -129,14 +114,12 @@ "const": "BMD" }, { - "title": "Brunei dollar", "description": "Brunei dollar", "x-status": "REC", "x-symbol": "$", "const": "BND" }, { - "title": "Boliviano", "description": "Boliviano", "x-status": "REC", "x-symbol": "Bs.", @@ -149,63 +132,54 @@ "const": "BOV" }, { - "title": "Brazilian real", "description": "Brazilian real", "x-status": "REC", "x-symbol": "R$", "const": "BRL" }, { - "title": "Bahamian dollar", "description": "Bahamian dollar", "x-status": "REC", "x-symbol": "$", "const": "BSD" }, { - "title": "Bhutanese ngultrum", "description": "Bhutanese ngultrum", "x-status": "REC", "x-symbol": "Ch.", "const": "BTN" }, { - "title": "Botswana pula", "description": "Botswana pula", "x-status": "REC", "x-symbol": "P", "const": "BWP" }, { - "title": "Belarusian ruble", "description": "Belarusian ruble", "x-status": "REC", "x-symbol": "Br", "const": "BYN" }, { - "title": "Belarusian ruble", "description": "Belarusian ruble", "x-status": "REC", "x-symbol": "Br", "const": "BYR" }, { - "title": "Belize dollar", "description": "Belize dollar", "x-status": "REC", "x-symbol": "$", "const": "BZD" }, { - "title": "Canadian dollar", "description": "Canadian dollar", "x-status": "REC", "x-symbol": "$", "const": "CAD" }, { - "title": "Congolese franc", "description": "Congolese franc", "x-status": "REC", "x-symbol": "CF", @@ -218,7 +192,6 @@ "const": "CHE" }, { - "title": "Swiss franc", "description": "Swiss franc", "x-status": "REC", "x-symbol": "SFr", @@ -237,7 +210,6 @@ "const": "CLF" }, { - "title": "Chilean peso", "description": "Chilean peso", "x-status": "REC", "x-symbol": "$", @@ -251,124 +223,106 @@ "const": "CNY" }, { - "title": "Colombian peso", "description": "Colombian peso", "x-status": "REC", "x-symbol": "$", "const": "COP" }, { - "title": "Unidad de Valor Real", "description": "Unidad de Valor Real", "x-status": "REC", "const": "COU" }, { - "title": "Costa Rican colon", "description": "Costa Rican colon", "x-status": "REC", "x-symbol": "₡", "const": "CRC" }, { - "title": "Cuban convertible peso", "description": "Cuban convertible peso", "x-status": "REC", "x-symbol": "CUC$", "const": "CUC" }, { - "title": "Cuban peso", "description": "Cuban peso", "x-status": "REC", "x-symbol": "$MN", "const": "CUP" }, { - "title": "Cape Verde escudo", "description": "Cape Verde escudo", "x-status": "REC", "x-symbol": "Esc", "const": "CVE" }, { - "title": "Czech koruna", "description": "Czech koruna", "x-status": "REC", "x-symbol": "Kč", "const": "CZK" }, { - "title": "Djiboutian franc", "description": "Djiboutian franc", "x-status": "REC", "x-symbol": "Fdj", "const": "DJF" }, { - "title": "Danish krone", "description": "Danish krone", "x-status": "REC", "x-symbol": "kr", "const": "DKK" }, { - "title": "Dominican peso", "description": "Dominican peso", "x-status": "REC", "x-symbol": "$", "const": "DOP" }, { - "title": "Algerian dinar", "description": "Algerian dinar", "x-status": "REC", "x-symbol": "دج", "const": "DZD" }, { - "title": "Estonian kroon", "description": "Estonian kroon", "x-status": "REC", "const": "EEK" }, { - "title": "Egyptian pound", "description": "Egyptian pound", "x-status": "REC", "x-symbol": "ج.م.", "const": "EGP" }, { - "title": "Eritrean nakfa", "description": "Eritrean nakfa", "x-status": "REC", "x-symbol": "Nfk", "const": "ERN" }, { - "title": "Ethiopian birr", "description": "Ethiopian birr", "x-status": "REC", "x-symbol": "Br", "const": "ETB" }, { - "title": "Euro", "description": "Euro", "x-status": "REC", "x-symbol": "€", "const": "EUR" }, { - "title": "Fiji dollar", "description": "Fiji dollar", "x-status": "REC", "x-symbol": "$", "const": "FJD" }, { - "title": "Falkland Islands pound", "description": "Falkland Islands pound", "x-status": "REC", "x-symbol": "£", @@ -382,314 +336,269 @@ "const": "GBP" }, { - "title": "Georgian lari", "description": "Georgian lari", "x-status": "REC", "x-symbol": "ლ", "const": "GEL" }, { - "title": "Ghanaian cedi", "description": "Ghanaian cedi", "x-status": "REC", "x-symbol": "GH₵", "const": "GHS" }, { - "title": "Gibraltar pound", "description": "Gibraltar pound", "x-status": "REC", "x-symbol": "£", "const": "GIP" }, { - "title": "Gambian dalasi", "description": "Gambian dalasi", "x-status": "REC", "x-symbol": "D", "const": "GMD" }, { - "title": "Guinean franc", "description": "Guinean franc", "x-status": "REC", "x-symbol": "FG", "const": "GNF" }, { - "title": "Guatemalan quetzal", "description": "Guatemalan quetzal", "x-status": "REC", "x-symbol": "Q", "const": "GTQ" }, { - "title": "Guyanese dollar", "description": "Guyanese dollar", "x-status": "REC", "x-symbol": "$", "const": "GYD" }, { - "title": "Hong Kong dollar", "description": "Hong Kong dollar", "x-status": "REC", "x-symbol": "$", "const": "HKD" }, { - "title": "Honduran lempira", "description": "Honduran lempira", "x-status": "REC", "x-symbol": "L", "const": "HNL" }, { - "title": "Croatian kuna", "description": "Croatian kuna", "x-status": "REC", "x-symbol": "kn", "const": "HRK" }, { - "title": "Haitian gourde", "description": "Haitian gourde", "x-status": "REC", "x-symbol": "G", "const": "HTG" }, { - "title": "Hungarian forint", "description": "Hungarian forint", "x-status": "REC", "x-symbol": "Ft", "const": "HUF" }, { - "title": "Indonesian rupiah", "description": "Indonesian rupiah", "x-status": "REC", "x-symbol": "Rp", "const": "IDR" }, { - "title": "Israeli new sheqel", "description": "Israeli new sheqel", "x-status": "REC", "x-symbol": "₪", "const": "ILS" }, { - "title": "Indian rupee", "description": "Indian rupee", "x-status": "REC", "x-symbol": "₨", "const": "INR" }, { - "title": "Iraqi dinar", "description": "Iraqi dinar", "x-status": "REC", "x-symbol": "د.ع", "const": "IQD" }, { - "title": "Iranian rial", "description": "Iranian rial", "x-status": "REC", "x-symbol": "﷼", "const": "IRR" }, { - "title": "Icelandic króna", "description": "Icelandic króna", "x-status": "REC", "x-symbol": "kr", "const": "ISK" }, { - "title": "Jamaican dollar", "description": "Jamaican dollar", "x-status": "REC", "x-symbol": "$", "const": "JMD" }, { - "title": "Jordanian dinar", "description": "Jordanian dinar", "x-status": "REC", "x-symbol": "JD", "const": "JOD" }, { - "title": "Japanese yen", "description": "Japanese yen", "x-status": "REC", "x-symbol": "¥", "const": "JPY" }, { - "title": "Kenyan shilling", "description": "Kenyan shilling", "x-status": "REC", "x-symbol": "Ksh", "const": "KES" }, { - "title": "Kyrgyzstani som", "description": "Kyrgyzstani som", "x-status": "REC", "x-symbol": "сом", "const": "KGS" }, { - "title": "Cambodian riel", "description": "Cambodian riel", "x-status": "REC", "x-symbol": "៛", "const": "KHR" }, { - "title": "Comoro franc", "description": "Comoro franc", "x-status": "REC", "x-symbol": "₣", "const": "KMF" }, { - "title": "North Korean won", "description": "North Korean won", "x-status": "REC", "x-symbol": "₩", "const": "KPW" }, { - "title": "South Korean won", "description": "South Korean won", "x-status": "REC", "x-symbol": "₩", "const": "KRW" }, { - "title": "Kuwaiti dinar", "description": "Kuwaiti dinar", "x-status": "REC", "x-symbol": "د.ك", "const": "KWD" }, { - "title": "Cayman Islands dollar", "description": "Cayman Islands dollar", "x-status": "REC", "x-symbol": "$", "const": "KYD" }, { - "title": "Kazakhstani tenge", "description": "Kazakhstani tenge", "x-status": "REC", "x-symbol": "₸", "const": "KZT" }, { - "title": "Lao kip", "description": "Lao kip", "x-status": "REC", "x-symbol": "₭", "const": "LAK" }, { - "title": "Lebanese pound", "description": "Lebanese pound", "x-status": "REC", "x-symbol": "LL", "const": "LBP" }, { - "title": "Sri Lanka rupee", "description": "Sri Lanka rupee", "x-status": "REC", "x-symbol": "රු", "const": "LKR" }, { - "title": "Liberian dollar", "description": "Liberian dollar", "x-status": "REC", "x-symbol": "$", "const": "LRD" }, { - "title": "Lesotho loti", "description": "Lesotho loti", "x-status": "REC", "x-symbol": "M", "const": "LSL" }, { - "title": "Lithuanian litas", "description": "Lithuanian litas", "x-status": "REC", "x-symbol": "Lt", "const": "LTL" }, { - "title": "Latvian lats", "description": "Latvian lats", "x-status": "REC", "x-symbol": "Ls", "const": "LVL" }, { - "title": "Libyan dinar", "description": "Libyan dinar", "x-status": "REC", "x-symbol": "ل.د", "const": "LYD" }, { - "title": "Moroccan dirham", "description": "Moroccan dirham", "x-status": "REC", "x-symbol": "د.م.", "const": "MAD" }, { - "title": "Moldovan leu", "description": "Moldovan leu", "x-status": "REC", "const": "MDL" }, { - "title": "Malagasy ariary", "description": "Malagasy ariary", "x-status": "REC", "x-symbol": "Ar", "const": "MGA" }, { - "title": "Macedonian denar", "description": "Macedonian denar", "x-status": "REC", "x-symbol": "ден", "const": "MKD" }, { - "title": "Myanma kyat", "description": "Myanma kyat", "x-status": "REC", "x-symbol": "K", "const": "MMK" }, { - "title": "Mongolian tugrik", "description": "Mongolian tugrik", "x-status": "REC", "x-symbol": "₮", "const": "MNT" }, { - "title": "Macanese pataca", "description": "Macanese pataca", "x-status": "REC", "x-symbol": "MOP$", @@ -710,28 +619,24 @@ "const": "MRU" }, { - "title": "Mauritian rupee", "description": "Mauritian rupee", "x-status": "REC", "x-symbol": "₨", "const": "MUR" }, { - "title": "Maldivian rufiyaa", "description": "Maldivian rufiyaa", "x-status": "REC", "x-symbol": "Rf.", "const": "MVR" }, { - "title": "Malawian kwacha", "description": "Malawian kwacha", "x-status": "REC", "x-symbol": "MK", "const": "MWK" }, { - "title": "Mexican peso", "description": "Mexican peso", "x-status": "REC", "x-symbol": "$", @@ -744,132 +649,113 @@ "const": "MXV" }, { - "title": "Malaysian ringgit", "description": "Malaysian ringgit", "x-status": "REC", "x-symbol": "RM", "const": "MYR" }, { - "title": "Mozambican metical", "description": "Mozambican metical", "x-status": "REC", "x-symbol": "MT", "const": "MZN" }, { - "title": "Namibian dollar", "description": "Namibian dollar", "x-status": "REC", "x-symbol": "$", "const": "NAD" }, { - "title": "Nigerian naira", "description": "Nigerian naira", "x-status": "REC", "x-symbol": "₦", "const": "NGN" }, { - "title": "Cordoba oro", "description": "Cordoba oro", "x-status": "REC", "x-symbol": "C$", "const": "NIO" }, { - "title": "Norwegian krone", "description": "Norwegian krone", "x-status": "REC", "x-symbol": "kr", "const": "NOK" }, { - "title": "Nepalese rupee", "description": "Nepalese rupee", "x-status": "REC", "x-symbol": "₨", "const": "NPR" }, { - "title": "New Zealand dollar", "description": "New Zealand dollar", "x-status": "REC", "x-symbol": "$", "const": "NZD" }, { - "title": "Omani rial", "description": "Omani rial", "x-status": "REC", "x-symbol": "ر.ع.", "const": "OMR" }, { - "title": "Panamanian balboa", "description": "Panamanian balboa", "x-status": "REC", "x-symbol": "B/.", "const": "PAB" }, { - "title": "Peruvian nuevo sol", "description": "Peruvian nuevo sol", "x-status": "REC", "x-symbol": "S/", "const": "PEN" }, { - "title": "Papua New Guinean kina", "description": "Papua New Guinean kina", "x-status": "REC", "x-symbol": "K", "const": "PGK" }, { - "title": "Philippine peso", "description": "Philippine peso", "x-status": "REC", "x-symbol": "₱", "const": "PHP" }, { - "title": "Pakistani rupee", "description": "Pakistani rupee", "x-status": "REC", "x-symbol": "₨", "const": "PKR" }, { - "title": "Polish złoty", "description": "Polish złoty", "x-status": "REC", "x-symbol": "zł", "const": "PLN" }, { - "title": "Paraguayan guaraní", "description": "Paraguayan guaraní", "x-status": "REC", "x-symbol": "₲", "const": "PYG" }, { - "title": "Qatari rial", "description": "Qatari rial", "x-status": "REC", "x-symbol": "ر.ق", "const": "QAR" }, { - "title": "Romanian new leu", "description": "Romanian new leu", "x-status": "REC", "const": "RON" }, { - "title": "Serbian dinar", "description": "Serbian dinar", "x-status": "REC", "x-symbol": "дин", @@ -883,7 +769,6 @@ "const": "RUB" }, { - "title": "Rwandan franc", "description": "Rwandan franc", "x-status": "REC", "x-symbol": "FRw", @@ -897,21 +782,18 @@ "const": "SAR" }, { - "title": "Solomon Islands dollar", "description": "Solomon Islands dollar", "x-status": "REC", "x-symbol": "$", "const": "SBD" }, { - "title": "Seychelles rupee", "description": "Seychelles rupee", "x-status": "REC", "x-symbol": "SRe", "const": "SCR" }, { - "title": "Sudanese pound", "description": "Sudanese pound", "x-status": "REC", "const": "SDG" @@ -924,14 +806,12 @@ "const": "SEK" }, { - "title": "Singapore dollar", "description": "Singapore dollar", "x-status": "REC", "x-symbol": "$", "const": "SGD" }, { - "title": "Saint Helena pound", "description": "Saint Helena pound", "x-status": "REC", "x-symbol": "£", @@ -952,27 +832,23 @@ "const": "SLE" }, { - "title": "Somali shilling", "description": "Somali shilling", "x-status": "REC", "x-symbol": "Sh.So", "const": "SOS" }, { - "title": "Surinamese dollar", "description": "Surinamese dollar", "x-status": "REC", "x-symbol": "$", "const": "SRD" }, { - "title": "South Sudanese pound", "description": "South Sudanese pound", "x-status": "REC", "const": "SSP" }, { - "title": "São Tomé and Príncipe dobra", "description": "São Tomé and Príncipe dobra", "x-status": "REC", "x-symbol": "Db", @@ -986,14 +862,12 @@ "const": "STN" }, { - "title": "Salvadoran colón", "description": "Salvadoran colón", "x-status": "REC", "x-symbol": "₡", "const": "SVC" }, { - "title": "Syrian pound", "description": "Syrian pound", "x-status": "REC", "x-symbol": "LS", @@ -1014,19 +888,16 @@ "const": "THB" }, { - "title": "Tajikistani somoni", "description": "Tajikistani somoni", "x-status": "REC", "const": "TJS" }, { - "title": "Turkmenistani manat", "description": "Turkmenistani manat", "x-status": "REC", "const": "TMT" }, { - "title": "Tunisian dinar", "description": "Tunisian dinar", "x-status": "REC", "x-symbol": "د.ت", @@ -1040,28 +911,24 @@ "const": "TOP" }, { - "title": "Turkish lira", "description": "Turkish lira", "x-status": "REC", "x-symbol": "₺", "const": "TRY" }, { - "title": "Trinidad and Tobago dollar", "description": "Trinidad and Tobago dollar", "x-status": "REC", "x-symbol": "$", "const": "TTD" }, { - "title": "New Taiwan dollar", "description": "New Taiwan dollar", "x-status": "REC", "x-symbol": "$", "const": "TWD" }, { - "title": "Tanzanian shilling", "description": "Tanzanian shilling", "x-status": "REC", "x-symbol": "Tsh", @@ -1075,7 +942,6 @@ "const": "UAH" }, { - "title": "Ugandan shilling", "description": "Ugandan shilling", "x-status": "REC", "x-symbol": "USh", @@ -1109,7 +975,6 @@ "const": "UYI" }, { - "title": "Uruguayan peso", "description": "Uruguayan peso", "x-status": "REC", "x-symbol": "$", @@ -1164,14 +1029,12 @@ "const": "VND" }, { - "title": "Vanuatu vatu", "description": "Vanuatu vatu", "x-status": "REC", "x-symbol": "VT", "const": "VUV" }, { - "title": "Samoan tala", "description": "Samoan tala", "x-status": "REC", "x-symbol": "WS$", @@ -1220,14 +1083,12 @@ "const": "XBD" }, { - "title": "East Caribbean dollar", "description": "East Caribbean dollar", "x-status": "REC", "x-symbol": "$", "const": "XCD" }, { - "title": "Special Drawing Rights", "description": "Special Drawing Rights", "x-status": "REC", "const": "XDR" @@ -1239,7 +1100,6 @@ "const": "XFU" }, { - "title": "CFA Franc BCEAO", "description": "CFA Franc BCEAO", "x-status": "REC", "const": "XOF" @@ -1276,27 +1136,23 @@ "const": "XUA" }, { - "title": "Yemeni rial", "description": "Yemeni rial", "x-status": "REC", "const": "YER" }, { - "title": "South African rand", "description": "South African rand", "x-status": "REC", "x-symbol": "R", "const": "ZAR" }, { - "title": "Zambian kwacha", "description": "Zambian kwacha", "x-status": "REC", "x-symbol": "ZK", "const": "ZMK" }, { - "title": "Zambian kwacha", "description": "Zambian kwacha", "x-status": "REC", "x-symbol": "ZK", @@ -1310,7 +1166,6 @@ "const": "ZWG" }, { - "title": "Zimbabwe dollar", "description": "Zimbabwe dollar", "x-status": "REC", "x-symbol": "$", diff --git a/schemas/2020-12/xbrl/utr/power-item-type-normative.json b/schemas/2020-12/xbrl/utr/power-item-type-normative.json index 358f4ccf..9656bf8a 100644 --- a/schemas/2020-12/xbrl/utr/power-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/power-item-type-normative.json @@ -45,7 +45,6 @@ "const": "TW" }, { - "title": "Watt", "description": "Watt", "x-status": "REC", "x-symbol": "W", diff --git a/schemas/2020-12/xbrl/utr/power-item-type.json b/schemas/2020-12/xbrl/utr/power-item-type.json index 358f4ccf..9656bf8a 100644 --- a/schemas/2020-12/xbrl/utr/power-item-type.json +++ b/schemas/2020-12/xbrl/utr/power-item-type.json @@ -45,7 +45,6 @@ "const": "TW" }, { - "title": "Watt", "description": "Watt", "x-status": "REC", "x-symbol": "W", diff --git a/schemas/2020-12/xbrl/utr/pure-item-type-normative.json b/schemas/2020-12/xbrl/utr/pure-item-type-normative.json index ac3f2fee..d11b1be5 100644 --- a/schemas/2020-12/xbrl/utr/pure-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/pure-item-type-normative.json @@ -22,7 +22,6 @@ "const": "pure" }, { - "title": "Rate", "description": "Rate", "x-status": "REC", "const": "Rate" diff --git a/schemas/2020-12/xbrl/utr/pure-item-type.json b/schemas/2020-12/xbrl/utr/pure-item-type.json index ac3f2fee..d11b1be5 100644 --- a/schemas/2020-12/xbrl/utr/pure-item-type.json +++ b/schemas/2020-12/xbrl/utr/pure-item-type.json @@ -22,7 +22,6 @@ "const": "pure" }, { - "title": "Rate", "description": "Rate", "x-status": "REC", "const": "Rate" diff --git a/schemas/2020-12/xbrl/utr/volume-item-type-normative.json b/schemas/2020-12/xbrl/utr/volume-item-type-normative.json index 767002a7..06270f9b 100644 --- a/schemas/2020-12/xbrl/utr/volume-item-type-normative.json +++ b/schemas/2020-12/xbrl/utr/volume-item-type-normative.json @@ -17,7 +17,6 @@ "const": "bbl" }, { - "title": "Cubic Foot", "description": "Cubic Foot", "x-status": "REC", "x-symbol": "ft³", @@ -59,14 +58,12 @@ "const": "MMcf" }, { - "title": "Litre", "description": "Litre", "x-status": "REC", "x-symbol": "l", "const": "l" }, { - "title": "Cubic Metre", "description": "Cubic Metre", "x-status": "REC", "x-symbol": "m³", diff --git a/schemas/2020-12/xbrl/utr/volume-item-type.json b/schemas/2020-12/xbrl/utr/volume-item-type.json index 28f9476f..47711ae1 100644 --- a/schemas/2020-12/xbrl/utr/volume-item-type.json +++ b/schemas/2020-12/xbrl/utr/volume-item-type.json @@ -17,7 +17,6 @@ "const": "bbl" }, { - "title": "Cubic Foot", "description": "Cubic Foot", "x-status": "REC", "x-symbol": "ft³", @@ -59,14 +58,12 @@ "const": "MMcf" }, { - "title": "Litre", "description": "Litre", "x-status": "REC", "x-symbol": "l", "const": "l" }, { - "title": "Cubic Metre", "description": "Cubic Metre", "x-status": "REC", "x-symbol": "m³", diff --git a/templates/schemas/2020-12/xbrl/utr/area-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/area-item-type-normative.jq index 4341a5f1..731a61df 100644 --- a/templates/schemas/2020-12/xbrl/utr/area-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/area-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "areaItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/area-item-type.jq b/templates/schemas/2020-12/xbrl/utr/area-item-type.jq index fb9c0afd..3613aa6b 100644 --- a/templates/schemas/2020-12/xbrl/utr/area-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/area-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "areaItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/duration-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/duration-item-type-normative.jq index f914c6d6..aa2ce3f0 100644 --- a/templates/schemas/2020-12/xbrl/utr/duration-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/duration-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "durationItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/duration-item-type.jq b/templates/schemas/2020-12/xbrl/utr/duration-item-type.jq index 1674a3b2..32a95944 100644 --- a/templates/schemas/2020-12/xbrl/utr/duration-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/duration-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "durationItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type-normative.jq index f307879c..a987e52c 100644 --- a/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "electricChargeItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type.jq b/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type.jq index c40a5205..c9e7390c 100644 --- a/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/electric-charge-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "electricChargeItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.jq index 3dc9e53f..50c28d4f 100644 --- a/templates/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/electric-current-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "electricCurrentItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/electric-current-item-type.jq b/templates/schemas/2020-12/xbrl/utr/electric-current-item-type.jq index 69ddaac2..2ff0fa47 100644 --- a/templates/schemas/2020-12/xbrl/utr/electric-current-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/electric-current-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "electricCurrentItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/energy-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/energy-item-type-normative.jq index d4aac0a4..2adf3f79 100644 --- a/templates/schemas/2020-12/xbrl/utr/energy-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/energy-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "energyItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/energy-item-type.jq b/templates/schemas/2020-12/xbrl/utr/energy-item-type.jq index 0258165f..9baada13 100644 --- a/templates/schemas/2020-12/xbrl/utr/energy-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/energy-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "energyItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type-normative.jq index b4c9bea8..7120db46 100644 --- a/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "energyPerMonetaryItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type.jq b/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type.jq index d7de084e..cfd6d304 100644 --- a/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/energy-per-monetary-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "energyPerMonetaryItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/flow-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/flow-item-type-normative.jq index bb32fed1..2b1b11bd 100644 --- a/templates/schemas/2020-12/xbrl/utr/flow-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/flow-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "flowItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/flow-item-type.jq b/templates/schemas/2020-12/xbrl/utr/flow-item-type.jq index deb2ddac..a38b1bdd 100644 --- a/templates/schemas/2020-12/xbrl/utr/flow-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/flow-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "flowItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/force-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/force-item-type-normative.jq index c99dbcee..c9bd6bf3 100644 --- a/templates/schemas/2020-12/xbrl/utr/force-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/force-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "forceItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/force-item-type.jq b/templates/schemas/2020-12/xbrl/utr/force-item-type.jq index e41d5918..bfa23ae6 100644 --- a/templates/schemas/2020-12/xbrl/utr/force-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/force-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "forceItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/frequency-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/frequency-item-type-normative.jq index 86fc608e..c7c66ccd 100644 --- a/templates/schemas/2020-12/xbrl/utr/frequency-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/frequency-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "frequencyItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/frequency-item-type.jq b/templates/schemas/2020-12/xbrl/utr/frequency-item-type.jq index c6188760..826100cd 100644 --- a/templates/schemas/2020-12/xbrl/utr/frequency-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/frequency-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "frequencyItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type-normative.jq index 5c46841b..0352f86f 100644 --- a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "ghgEmissionsItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type.jq b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type.jq index f6eb5104..30f3a36b 100644 --- a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "ghgEmissionsItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type-normative.jq index 69737d46..73617618 100644 --- a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "ghgEmissionsPerMonetaryItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type.jq b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type.jq index 91621193..2a4f0d07 100644 --- a/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/ghg-emissions-per-monetary-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "ghgEmissionsPerMonetaryItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/length-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/length-item-type-normative.jq index 8af679b8..ac44a36f 100644 --- a/templates/schemas/2020-12/xbrl/utr/length-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/length-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "lengthItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/length-item-type.jq b/templates/schemas/2020-12/xbrl/utr/length-item-type.jq index 710c83ce..c5654bcc 100644 --- a/templates/schemas/2020-12/xbrl/utr/length-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/length-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "lengthItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/mass-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/mass-item-type-normative.jq index 7f19a2cb..2ad4ee8d 100644 --- a/templates/schemas/2020-12/xbrl/utr/mass-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/mass-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "massItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/mass-item-type.jq b/templates/schemas/2020-12/xbrl/utr/mass-item-type.jq index 43da32f9..29e47f74 100644 --- a/templates/schemas/2020-12/xbrl/utr/mass-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/mass-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "massItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/memory-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/memory-item-type-normative.jq index cffe12ac..1fba0f79 100644 --- a/templates/schemas/2020-12/xbrl/utr/memory-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/memory-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "memoryItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/memory-item-type.jq b/templates/schemas/2020-12/xbrl/utr/memory-item-type.jq index cb68d7f7..0012e903 100644 --- a/templates/schemas/2020-12/xbrl/utr/memory-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/memory-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "memoryItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/monetary-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/monetary-item-type-normative.jq index 90f665b6..6abed693 100644 --- a/templates/schemas/2020-12/xbrl/utr/monetary-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/monetary-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "monetaryItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/monetary-item-type.jq b/templates/schemas/2020-12/xbrl/utr/monetary-item-type.jq index 38c979ea..c5378a6d 100644 --- a/templates/schemas/2020-12/xbrl/utr/monetary-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/monetary-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "monetaryItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/per-share-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/per-share-item-type-normative.jq index 11e51208..4dd60b23 100644 --- a/templates/schemas/2020-12/xbrl/utr/per-share-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/per-share-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "perShareItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/per-share-item-type.jq b/templates/schemas/2020-12/xbrl/utr/per-share-item-type.jq index 1884e560..f59a37f3 100644 --- a/templates/schemas/2020-12/xbrl/utr/per-share-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/per-share-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "perShareItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/per-unit-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/per-unit-item-type-normative.jq index 9faa2ac7..b5f6ded7 100644 --- a/templates/schemas/2020-12/xbrl/utr/per-unit-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/per-unit-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "perUnitItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/per-unit-item-type.jq b/templates/schemas/2020-12/xbrl/utr/per-unit-item-type.jq index 53eeb7f3..2e540305 100644 --- a/templates/schemas/2020-12/xbrl/utr/per-unit-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/per-unit-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "perUnitItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type-normative.jq index 3b8cad61..d1fa0cbc 100644 --- a/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "planeAngleItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type.jq b/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type.jq index 8a15cb6d..98cfe81e 100644 --- a/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/plane-angle-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "planeAngleItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/power-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/power-item-type-normative.jq index cac4c536..a87e3930 100644 --- a/templates/schemas/2020-12/xbrl/utr/power-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/power-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "powerItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/power-item-type.jq b/templates/schemas/2020-12/xbrl/utr/power-item-type.jq index 32d268c3..9c7cdfad 100644 --- a/templates/schemas/2020-12/xbrl/utr/power-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/power-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "powerItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/pressure-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/pressure-item-type-normative.jq index fe9333b8..8b46d632 100644 --- a/templates/schemas/2020-12/xbrl/utr/pressure-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/pressure-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "pressureItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/pressure-item-type.jq b/templates/schemas/2020-12/xbrl/utr/pressure-item-type.jq index 4d9fe640..aa4fc936 100644 --- a/templates/schemas/2020-12/xbrl/utr/pressure-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/pressure-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "pressureItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/pure-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/pure-item-type-normative.jq index 1baa38e9..f1abac64 100644 --- a/templates/schemas/2020-12/xbrl/utr/pure-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/pure-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "pureItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/pure-item-type.jq b/templates/schemas/2020-12/xbrl/utr/pure-item-type.jq index 31e2e4b1..b4f4378b 100644 --- a/templates/schemas/2020-12/xbrl/utr/pure-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/pure-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "pureItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/shares-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/shares-item-type-normative.jq index 3cdefb6e..3c6a4e1e 100644 --- a/templates/schemas/2020-12/xbrl/utr/shares-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/shares-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "sharesItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/shares-item-type.jq b/templates/schemas/2020-12/xbrl/utr/shares-item-type.jq index ba37db08..fe501418 100644 --- a/templates/schemas/2020-12/xbrl/utr/shares-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/shares-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "sharesItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/temperature-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/temperature-item-type-normative.jq index bb217bbc..400b4bba 100644 --- a/templates/schemas/2020-12/xbrl/utr/temperature-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/temperature-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "temperatureItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/temperature-item-type.jq b/templates/schemas/2020-12/xbrl/utr/temperature-item-type.jq index 514ec16e..652f2f92 100644 --- a/templates/schemas/2020-12/xbrl/utr/temperature-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/temperature-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "temperatureItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/voltage-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/voltage-item-type-normative.jq index ed89f64a..94031500 100644 --- a/templates/schemas/2020-12/xbrl/utr/voltage-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/voltage-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "voltageItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/voltage-item-type.jq b/templates/schemas/2020-12/xbrl/utr/voltage-item-type.jq index 37fbb700..a6f272bc 100644 --- a/templates/schemas/2020-12/xbrl/utr/voltage-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/voltage-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "voltageItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/volume-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/volume-item-type-normative.jq index 8df4aae1..243ee20f 100644 --- a/templates/schemas/2020-12/xbrl/utr/volume-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/volume-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "volumeItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/volume-item-type.jq b/templates/schemas/2020-12/xbrl/utr/volume-item-type.jq index 1ff15a63..d2abd329 100644 --- a/templates/schemas/2020-12/xbrl/utr/volume-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/volume-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "volumeItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type-normative.jq b/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type-normative.jq index 25a53029..41bee728 100644 --- a/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type-normative.jq +++ b/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type-normative.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "volumePerMonetaryItemType" and .["{http://www.xbrl.org/2009/utr}status"] == "REC")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) ) diff --git a/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type.jq b/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type.jq index 9daeb5ae..fd608bfe 100644 --- a/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type.jq +++ b/templates/schemas/2020-12/xbrl/utr/volume-per-monetary-item-type.jq @@ -19,11 +19,12 @@ | map(select(.["{http://www.xbrl.org/2009/utr}itemType"] == "volumePerMonetaryItemType")) | map( + (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) as $desc | { "const": .["{http://www.xbrl.org/2009/utr}unitId"], - "title": .["{http://www.xbrl.org/2009/utr}unitName"], - "description": (.["{http://www.xbrl.org/2009/utr}definition"] | gsub("\\s{2,}"; " ") | if endswith(".") then .[:-1] else . end) + "description": $desc } + + (if .["{http://www.xbrl.org/2009/utr}unitName"] != $desc then {"title": .["{http://www.xbrl.org/2009/utr}unitName"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}symbol"] then {"x-symbol": .["{http://www.xbrl.org/2009/utr}symbol"]} else {} end) + (if .["{http://www.xbrl.org/2009/utr}status"] then {"x-status": .["{http://www.xbrl.org/2009/utr}status"]} else {} end) )