-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create an EnsureMappings() constraint #283
Comments
I struggle to piece this together from smaller constraints. I feel like I might just miss an important piece of information to get this going: Here's an example input:
The output needs to stay like this, but I require validation that a certain set of keys are included in the dict.
However, at this point the value is keys-only. Do you see a way for me to perform such checks and preserve the JSON/dict structure? |
NB: One perfectly fine outcome of this exploration could also be that a usecase like this is out of scope for the parameter constraint validation system |
See also datalad/datalad-gooey#311 |
EnsureMapping
only takes a mapping with a single key-value pair. A check for required keys inmeta-add
would need a similar constraint that can take multiple key-value pairs.The text was updated successfully, but these errors were encountered: