Skip to content

referential integrity checks? #1872

Answered by jqnatividad
tmtmtmtm asked this question in Q&A
Discussion options

You must be logged in to vote

validate now supports the dynenum custom keyword for validating against a local CSV or on a URL (http/https schemes supported). 😄

#2166

For an example, see:

"Agency": {
"description": "Agency column using qsv's custom keyword - dynenum, for dynamic enumeration validation",
"minLength": 3,
"maxLength": 42,
"type": [
"string"
],
"dynenum": "NYC_agencies.csv"
},

https://github.com/jqnatividad/qsv/blob/master/scripts/NYC_agencies.csv

Contrast that with using hardcoded enums:

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tmtmtmtm
Comment options

Comment options

You must be logged in to vote
2 replies
@tmtmtmtm
Comment options

@jqnatividad
Comment options

Answer selected by jqnatividad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants