Incorrect error message
While validating series from Eurostat (#476 (closed)) some errors messages from validation script are wrong.
inn_c922/A.FAC1.10-49.G-Q.CV8.AT
Example: Cf series page
JSON-lines data
{"code":"A.FAC1.10-49.G-Q.CV8.AT","dimensions":["A","FAC1","10-49","G-Q","CV8","AT"],"observations":[["PERIOD","VALUE","OBS_STATUS"],["1996","high",""]]}
validation output
{
"cause": [
{
"message": "'high' is not valid under any of the given schemas",
"path": ["observations", 1, 1],
"value": "high"
}
],
"dataset_code": "inn_c922",
"error_code": "invalid-series-code",
"location": "inn_c922/series.jsonl#/0",
"message": "Series code does not conform to schema",
"provider_code": "Eurostat",
"series_code": "A.FAC1.10-49.G-Q.CV8.AT"
}
The message "Series code does not conform to schema" doesn't reflects the fact that there's an error in data (and not series code)
Edited by Christophe Benz