Skip to content

bug: missing field generates "missing-cell" errors additionnaly to the "missing-label" error #1791

Description

@pierrecamilleri

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

a
1
2
{
  "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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions