-
Notifications
You must be signed in to change notification settings - Fork 86
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
Validate if list contains dictionaries without validating keys in dictionary #54
Comments
I think I've hit this. For completion's sake here's a minimal test case, and the exception thrown data:
schema:
exception:
Version: 1.5.1 (via PyPI) |
..actually I hit it with even the following, no seq involved schema:
data:
|
@jmtd Have you tried the schema/data with the latest commit in |
Hi, sorry for the delay. Yes I can confirm this with 6596293 |
@smalleni Your specific usecase and schema you posted is now fixed as of this commit cd012c9 and you can see your data/schema was used and it now validated properly as expected. @smalleni @jmtd I would NOT recommend to use the
I will keep investigating why |
@jmtd A comment after some thinking regarding the problems with
but by doing this it makes it really confusing compared to the normal way it is done and i would have to rewrite alot of logic just to change it into this and that is not something i will do. So the current implementaitno and the suggestion/directive i mentioned above to use I am closing this issue becuase there is no more issues to deal within this issue. The original issue was solved as mentioned above through commit cd012c9 |
I think I understand, thank you. |
If scenario file has a list of dictionaries and the keys could be different each time, and user doesn't want to test for key names but just wants to check if the the sequence is a list of dictionaries.
In the above case, user just wants to check if plugins is a list of key value pairs.
The above schema validation throws an exception. It would be nice to have this feature as discussed in #53
The text was updated successfully, but these errors were encountered: