-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Overriding json-schema from backend does not override definitions #93
Comments
@edoput could you add an example of how to replicate the error please? |
Using the schema and tests from 7c8e27b you can reproduce this with the command nosetest tests/airos/test_aaa.py Paying attention to the logs from the failing tests we can see that it raises a validation error because of two different schema that validate the same instance under a As an example
where the interesting part is
Obviously there are two because the airos branch has an override for the available authentication encryption here |
Spent some time to analyze the issue, but unfortunately it is not a bug but the intended mechanism. Read more about this here: Pay attention to these two passages:
I will suggest a workaround for your issue on PR #91 |
Let's say that we have a custom schema like in airos and that we print the schema, like it happens on a validation error report.
The interesting part is that redefined
definitions
do not override the default one as it can be read from the logIt seems that
merge_config
can merge a json-schema andOrderedDict
but it treat the same definition as different elements.The text was updated successfully, but these errors were encountered: