You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a schema that includes the following fields:
SEXUAL_ORIENTATION_VALUE_CODE
SEXUAL_ORIENTATION_VALUE_CODE_DESCRIPTION
SEXUAL_ORIENTATION_VALUE_CODE_SYSTEM_NAME
SEXUAL_ORIENTATION_LAST_UPDATED
I need to enforce a condition in the schema such that if the fields SEXUAL_ORIENTATION_VALUE_CODE and SEXUAL_ORIENTATION_VALUE_CODE_DESCRIPTION have values in the CSV file, then the field SEXUAL_ORIENTATION_LAST_UPDATED must also be mandatory.
Could you please guide me on how to achieve this using Frictionless validation? Specifically, I need the schema to enforce this rule during data validation.
Thank you!
The text was updated successfully, but these errors were encountered:
It is currently not possible to specify conditional requirements, only atomical ones (not conditional on other fields): see constraints. I think you will need to write your own functions.
Conditional constraints are high on the demand list to be included in the specification though, but not straightforward to add. See frictionlessdata/datapackage#1058.
I am working on a schema that includes the following fields:
I need to enforce a condition in the schema such that if the fields SEXUAL_ORIENTATION_VALUE_CODE and SEXUAL_ORIENTATION_VALUE_CODE_DESCRIPTION have values in the CSV file, then the field SEXUAL_ORIENTATION_LAST_UPDATED must also be mandatory.
Could you please guide me on how to achieve this using Frictionless validation? Specifically, I need the schema to enforce this rule during data validation.
Thank you!
The text was updated successfully, but these errors were encountered: