Commit c8c4ac1f authored by Christophe Benz's avatar Christophe Benz

Dimensions in series.jsonl can be an array respecting

parent 0573b070
Pipeline #43030 failed with stage
in 1 minute and 45 seconds
......@@ -30,12 +30,24 @@
},
"dimensions": {
"description": "Dimensions of the time series. Dimensions partition the dataset in groups of time series.",
"type": "object",
"patternProperties": {
"^.*$": {
"$ref": "definitions.json#/nonEmptyString"
"oneOf":[
{
"type": "object",
"description": "Dimensions as an object of type 'code: value code'",
"patternProperties": {
"^.*$": {
"$ref": "definitions.json#/nonEmptyString"
}
}
},
{
"type": "array",
"description": "Dimensions as an array of values codes respecting dataset dimensions_codes_order",
"items": {
"$ref": "definitions.json#/nonEmptyString"
}
}
}
]
},
"doc_href": {
"description": "Resource representing the time series on the provider's website",
......
{"code": "M.MIO_M3.AL.4100.AT", "dimensions": {"FREQ": "M", "geo": "AT", "partner": "AL", "product": "4100", "unit": "MIO_M3"}, "observations": [["PERIOD", "VALUE"], ["1950", 1], ["1960", 2]]}
{"code": "M.MIO_M3.AL.4100.BE", "dimensions": {"FREQ": "M", "geo": "BE", "partner": "AL", "product": "4100", "unit": "MIO_M3"}, "observations": [["PERIOD", "VALUE", "OBS_STATUS"], ["1950", 1, "B"], ["1960", 2, ""]]}
{"code": "M.MIO_M3.AL.4100.FR", "dimensions": {"FREQ": "M", "geo": "FR", "partner": "AL", "product": "4100", "unit": "MIO_M3"}, "observations": [["PERIOD", "VALUE"], ["1950", 1], ["1960", "NA"]]}
\ No newline at end of file
{"code": "M.MIO_M3.AL.4100.AT", "dimensions": ["M", "MIO_M3", "AL", "4100", "AT"], "observations": [["PERIOD", "VALUE"], ["1950", 1], ["1960", 2]]}
{"code": "M.MIO_M3.AL.4100.BE", "dimensions": ["M", "MIO_M3", "AL", "4100", "BE"], "observations": [["PERIOD", "VALUE", "OBS_STATUS"], ["1950", 1, "B"], ["1960", 2, ""]]}
{"code": "M.MIO_M3.AL.4100.FR", "dimensions": ["M", "MIO_M3", "AL", "4100", "FR"], "observations": [["PERIOD", "VALUE"], ["1950", 1], ["1960", "NA"]]}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment