Skip to content

Support optional columns with default values during validation #1763

@megin1989

Description

@megin1989

We are using frictionless-py for validating CSV files against a Table Schema (Data Package ).

We recently introduced new boolean-style flag columns (Yes / No) in our schema, for example:

  • FLAG_PART_2
  • FLAG_TYPE_A
  • FLAG_TYPE_B

These columns represent feature or attribute flags and are optional for data providers during a transition period.

Requirement

  • Validation should still pass if these columns are absent
  • If absent, they should be treated as a default value (e.g. "No" / false) for downstream processing
  • If present, values should be validated against allowed values (Yes, No)

Could you please advise whether this scenario is currently supported in frictionless-py, or if there is a recommended approach for handling optional columns with default values?

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