Allow to specify type, format, constraints #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since we include the schemas verbosely, I think we should allow publishers to add more rigorous
type,formatandconstraintsthan the one provided atrs.tdwg.org.For
typewe have to be a bit careful, which is why I suggest to use"type": "any"in our table schemas for terms that can have multiple types. That would differentiate:eventDate: can bestringordatetimeFrom
eventType: must always be astringThe implementation rule for
"any"is that there must be no processing. For CSVs that means those values are interpreted as strings.@tucotuco you probably have a better overview of terms that can deviate from strings?