You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schema Changes (rdls_schema_v0.3.json)
Removed geometry field from Location definition and updated spatial description
Fixed risk_data_type structure - moved $ref under items array to match proper schema pattern
Changed oneOf to anyOf for date validation in Period start/end fields
Metadata Editor Changes (RDL_MDE.html)
Fixed bbox/centroid empty values - now outputs empty/undefined instead of [0,0] when not specified
Disabled countries field when spatial_scale is 'global' - auto-disables with visual indication and info note
Fixed numeric field types - added convertValueBySchema() function to convert string inputs to numbers/integers based on schema (fixes spatial_resolution, event_count, occurrence, event_rate, return_period, value, span, etc.)
Removed geometry references from MDE code
Added cleanEmptyValues() function - recursively removes empty arrays, empty strings, and null values from exported JSON/XML and GitHub publishes
Copy file name to clipboardExpand all lines: _static/rdls_schema_v0.3.json
+6-9Lines changed: 6 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,9 @@
65
65
"title": "Risk data type",
66
66
"type": "array",
67
67
"description": "The types of risk data included in the dataset, from the closed [risk_data_type codelist](https://docs.riskdatalibrary.org/en/latest/reference/codelists/#risk-data-type).",
68
-
"$ref": "#/$defs/risk_data_type",
68
+
"items": {
69
+
"$ref": "#/$defs/risk_data_type"
70
+
},
69
71
"codelist": "risk_data_type.csv",
70
72
"openCodelist": false,
71
73
"minItems": 1,
@@ -133,7 +135,7 @@
133
135
},
134
136
"spatial": {
135
137
"title": "Spatial coverage",
136
-
"description": "The geographical area covered by the dataset. If specified using coordinates, the use of `.bbox` is recommended over `.geometry` or `.centroid`.",
138
+
"description": "The geographical area covered by the dataset. If specified using coordinates, the use of `.bbox` is recommended over `.centroid`.",
137
139
"$ref": "#/$defs/Location"
138
140
},
139
141
"license": {
@@ -1930,7 +1932,7 @@
1930
1932
"title": "Start",
1931
1933
"type": "string",
1932
1934
"description": "The start of the period. A date (YYYY-MM-DD) is recommended. However, year-months (YYYY-MM) and years (YYYY) are supported.",
1933
-
"oneOf": [
1935
+
"anyOf": [
1934
1936
{
1935
1937
"format": "date"
1936
1938
},
@@ -1954,7 +1956,7 @@
1954
1956
"title": "End date",
1955
1957
"type": "string",
1956
1958
"description": "The end of the period. A date (YYYY-MM-DD) is recommended. However, year-months (YYYY-MM) and years (YYYY) are supported.",
1957
-
"oneOf": [
1959
+
"anyOf": [
1958
1960
{
1959
1961
"format": "date"
1960
1962
},
@@ -2323,11 +2325,6 @@
2323
2325
[-73.935242, 40.730610],
2324
2326
[2.3522, 48.8566]
2325
2327
]
2326
-
},
2327
-
"geometry": {
2328
-
"title": "Geometry",
2329
-
"description": "A set of coordinates denoting the vertices of the geographical area. This field describes the extent of the geographical area. To avoid creating very large metadata, geometries should have fewer than 50 vertices.",
0 commit comments