Description
When providing data with missing fields/labels compared to the schema fields, and provided that the validation happens without "--schema-sync" (or soon, with default "fieldsMatch": "exact" property), a "missing-label" error is raised (expected), but also many "missing-cell" errors (unexected).
Expected behavior
There should not be a "missing-cell" error in the report, for two reasons :
- it does not add any useful information to the "missing-label" error
- it's use should be limited to irregular rows (e.g. missing value in a csv row), not for a missing field in the data.
To reproduce
{
"resources": [
{
"name": "data",
"path": "data.csv",
"format": "csv",
"schema": {
"fields": [
{"name": "a"},
{"name": "b"}
]
}
}
]
}
frictionless validate dp.json
EDIT: same problem with extra-cell ! (and same origin)
Description
When providing data with missing fields/labels compared to the schema fields, and provided that the validation happens without "--schema-sync" (or soon, with default "fieldsMatch": "exact" property), a "missing-label" error is raised (expected), but also many "missing-cell" errors (unexected).
Expected behavior
There should not be a "missing-cell" error in the report, for two reasons :
To reproduce
a 1 2{ "resources": [ { "name": "data", "path": "data.csv", "format": "csv", "schema": { "fields": [ {"name": "a"}, {"name": "b"} ] } } ] }EDIT: same problem with extra-cell ! (and same origin)