-
Notifications
You must be signed in to change notification settings - Fork 89
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
any() inside included element causes error #28
Comments
The original schema you posted is this:
I think what you want is:
The include expects a dictionary. |
Hi! Thanks for the quick response and for supporting this great project! I think in my attempt to isolate the issue in the example I over-simplified it. Your suggestion does not quite work for me, as I need to have my any() inside a map():
The above causes an error, and I don't see a good way to re-format it if I can't pull the any() out into an include... |
Just realized there is a typo in the above example and it works if I fix it... I might be confusing myself. Let me try a few things. The schema I'm working with is fairly complicated and it's hard to isolate the issues :P |
Okay yes I ran into a syntax error and misinterpreted it when I was trying an alternative way to write the schema. Once I fixed the syntax error it worked. Sorry to bother! |
No problem, glad to help. |
The following schema results in an error while parsing the schema:
Relevant part of stack trace:
This is with Python 2.7 if that matters
So, if I want an element to contain one of two possible types of value, I need to do something like this instead and do some additional validation in the code that at least one of them is present:
Not sure if this is intended. Am I missing something or is there no neater way to do this?
Thanks!
The text was updated successfully, but these errors were encountered: