Python schema validation - #150
Open
JPEWdev wants to merge 7 commits into
Open
Conversation
Implements the context checks that are present in the other language bindings in python as well
Implements the same class resolution logic as is present in the other language bindings.
It is useful to have the line numbers in the jinja file line up with the line numbers in the generated file as much as possible (at least until the block at then end with all the generated classes). Rework the way the version information is generated by Jinja to make sure this is the case.
Implements tracking the path for validation errors, and also raising custom exceptions that capture the path. This matches the other bindings and also helps when debugging errors
Unknown properties (in extensible classes) should still be valid IRIs. Test should be added to enforce that they are not blank nodes and that context is correctly expanded.
Now that Python conforms with the other code binding implementations, run the entire JSON validation test suite instead of just a subset
Adds stubtest tests. This ensures that the .pyi files stay in sync with the .py files. Several API are fixed to conform, and an ignore list is provided for the rest (although these can be fixed at a later time).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes the Python bindings to match the validation semantics of the other code bindings. This allows its test suite to use the common JSON schema validation tests that all the other bindings use. In addition,
stubtesttests are added to ensure that the .pyi files stay in sync with .py