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
scientific_name = required if observation_type = "animal"
We would have to extend the schema as suggested in https://stackoverflow.com/a/38781027/2463806, i.e. (if I interpret this correctly) adding the following at the end of observations-table-schema.json:
But in my understanding, it wouldn't be picked up by any of the Table Schema validators, so it's probably not worth adding and just leave scientific_name not required.
The text was updated successfully, but these errors were encountered:
peterdesmet
changed the title
Figure out how to define conditional requirements [REPLACEMENT ISSUE]
Figure out how to define conditional requirements
Mar 11, 2021
Another option would be to suggest conditional constraints as a new pattern to Frictionless. We would then have to define how conditional constrains should be specified (the syntax) and have tools such as Frictionless Framework implement it.
peterdesmet
changed the title
Figure out how to define conditional requirements
Create Frictionless pattern to support conditional constraints
May 25, 2023
In GitLab by @peterdesmet on Sep 25, 2020, 14:25
Conditional constraints are not supported by Table Schema (see frictionlessdata/datapackage#169).
So to support:
We would have to extend the schema as suggested in https://stackoverflow.com/a/38781027/2463806, i.e. (if I interpret this correctly) adding the following at the end of
observations-table-schema.json
:Or (using the JSON Schema (draft-07)):
But in my understanding, it wouldn't be picked up by any of the Table Schema validators, so it's probably not worth adding and just leave
scientific_name
not required.The text was updated successfully, but these errors were encountered: