Skip to content

Commit 5f03d73

Browse files
authored
Upgrade JSON Schema CLI to v13.1.0 (#83)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 5dd117f commit 5f03d73

75 files changed

Lines changed: 171 additions & 461 deletions

File tree

Some content is hidden

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

meta/schemas-root.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Root schema meta-schema",
4+
"description": "Meta-schema for validating root-level schemas",
35
"type": "object",
46
"anyOf": [
57
{
@@ -21,14 +23,7 @@
2123
}
2224
}
2325
],
24-
"required": [
25-
"x-license",
26-
"title",
27-
"description",
28-
"examples",
29-
"x-links",
30-
"$schema"
31-
],
26+
"required": [ "x-license", "examples", "x-links", "$schema" ],
3227
"properties": {
3328
"$schema": {
3429
"const": "https://json-schema.org/draft/2020-12/schema"
@@ -51,6 +46,9 @@
5146
"items": {
5247
"$ref": "../schemas/2020-12/ietf/http/https-url.json"
5348
}
49+
},
50+
"examples": {
51+
"type": "array"
5452
}
5553
}
5654
}

meta/schemas.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
33
"$dynamicAnchor": "meta",
4+
"title": "Schema meta-schema",
5+
"description": "Meta-schema for validating all schemas",
46
"$ref": "https://json-schema.org/draft/2020-12/schema",
57
"properties": {
68
"$id": false,

meta/test.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"title": "Test meta-schema",
4+
"description": "Meta-schema for validating test files",
35
"type": "object",
46
"required": [ "x-license", "tests" ],
57
"properties": {

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@
5151
"access": "public"
5252
},
5353
"devDependencies": {
54-
"@sourcemeta/jsonschema": "^12.10.1"
54+
"@sourcemeta/jsonschema": "^13.1.0"
5555
}
5656
}

schemas/2020-12/xbrl/utr/area-item-type-normative.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
],
1111
"anyOf": [
1212
{
13-
"title": "Acre",
1413
"description": "Acre",
1514
"x-status": "REC",
1615
"x-symbol": "a",
1716
"const": "acre"
1817
},
1918
{
20-
"title": "Square Foot",
2119
"description": "Square Foot",
2220
"x-status": "REC",
2321
"x-symbol": "ft²",
@@ -31,14 +29,12 @@
3129
"const": "sqmi"
3230
},
3331
{
34-
"title": "Square Yard",
3532
"description": "Square Yard",
3633
"x-status": "REC",
3734
"x-symbol": "yd²",
3835
"const": "sqyd"
3936
},
4037
{
41-
"title": "Hectare",
4238
"description": "Hectare",
4339
"x-status": "REC",
4440
"x-symbol": "ha",

schemas/2020-12/xbrl/utr/area-item-type.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
],
1111
"anyOf": [
1212
{
13-
"title": "Acre",
1413
"description": "Acre",
1514
"x-status": "REC",
1615
"x-symbol": "a",
1716
"const": "acre"
1817
},
1918
{
20-
"title": "Square Foot",
2119
"description": "Square Foot",
2220
"x-status": "REC",
2321
"x-symbol": "ft²",
@@ -31,14 +29,12 @@
3129
"const": "sqmi"
3230
},
3331
{
34-
"title": "Square Yard",
3532
"description": "Square Yard",
3633
"x-status": "REC",
3734
"x-symbol": "yd²",
3835
"const": "sqyd"
3936
},
4037
{
41-
"title": "Hectare",
4238
"description": "Hectare",
4339
"x-status": "REC",
4440
"x-symbol": "ha",

schemas/2020-12/xbrl/utr/electric-current-item-type-normative.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
],
1111
"anyOf": [
1212
{
13-
"title": "Ampere",
1413
"description": "Ampere",
1514
"x-status": "REC",
1615
"x-symbol": "A",

schemas/2020-12/xbrl/utr/electric-current-item-type.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
],
1111
"anyOf": [
1212
{
13-
"title": "Ampere",
1413
"description": "Ampere",
1514
"x-status": "REC",
1615
"x-symbol": "A",

schemas/2020-12/xbrl/utr/energy-item-type-normative.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@
1010
],
1111
"anyOf": [
1212
{
13-
"title": "Barrel of Oil Equivalent",
1413
"description": "Barrel of Oil Equivalent",
1514
"x-status": "REC",
1615
"x-symbol": "Boe",
1716
"const": "Boe"
1817
},
1918
{
20-
"title": "British Thermal Unit",
2119
"description": "British Thermal Unit",
2220
"x-status": "REC",
2321
"x-symbol": "BTU",
@@ -31,42 +29,36 @@
3129
"const": "ft_lb"
3230
},
3331
{
34-
"title": "Thousand Barrels of Oil Equivalent",
3532
"description": "Thousand Barrels of Oil Equivalent",
3633
"x-status": "REC",
3734
"x-symbol": "MBoe",
3835
"const": "MBoe"
3936
},
4037
{
41-
"title": "Thousand Cubic Foot Equivalent",
4238
"description": "Thousand Cubic Foot Equivalent",
4339
"x-status": "REC",
4440
"x-symbol": "Mcfe",
4541
"const": "Mcfe"
4642
},
4743
{
48-
"title": "Millions of Barrels of Oil Equivalent",
4944
"description": "Millions of Barrels of Oil Equivalent",
5045
"x-status": "REC",
5146
"x-symbol": "MMBoe",
5247
"const": "MMBoe"
5348
},
5449
{
55-
"title": "Millions of BTU",
5650
"description": "Millions of BTU",
5751
"x-status": "REC",
5852
"x-symbol": "MMBTU",
5953
"const": "MMBTU"
6054
},
6155
{
62-
"title": "Calorie",
6356
"description": "Calorie",
6457
"x-status": "REC",
6558
"x-symbol": "Cal",
6659
"const": "Cal"
6760
},
6861
{
69-
"title": "Joule",
7062
"description": "Joule",
7163
"x-status": "REC",
7264
"x-symbol": "J",
@@ -94,21 +86,18 @@
9486
"const": "mJ"
9587
},
9688
{
97-
"title": "Megawatt-Hour",
9889
"description": "Megawatt-Hour",
9990
"x-status": "REC",
10091
"x-symbol": "MWh",
10192
"const": "MWh"
10293
},
10394
{
104-
"title": "Gigawatt-Hour",
10595
"description": "Gigawatt-Hour",
10696
"x-status": "REC",
10797
"x-symbol": "GWh",
10898
"const": "GWh"
10999
},
110100
{
111-
"title": "Terawatt-Hour",
112101
"description": "Terawatt-Hour",
113102
"x-status": "REC",
114103
"x-symbol": "TWh",

0 commit comments

Comments
 (0)