-
Notifications
You must be signed in to change notification settings - Fork 54
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
list of dicts #41
Comments
It's true; I don't think we currently have a template like that. But Confuse is extendable, so you might take inspiration from the current templates to write something like that! See MappingTemplate for inspiration: |
Hi! I was having this exact issue, so I've implemented a template to represent a list of similar items. Basically it takes a list as the input and uses the first item on the list as a template to validate against. |
hi,
I have not found a way to have a list of dicts and validate it.
this is the config
example of not working validation:
in the end i just validated it by:
cars: list
but when i run config.dump() i get back the config in yaml but the list as an json/dict
The text was updated successfully, but these errors were encountered: