-
Notifications
You must be signed in to change notification settings - Fork 23
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
Schema with a wrong pointers to subschema passes the validation #41
Comments
When I add the "id" to schema:
I have the next line in log: P.S. I use P.P.S It is definetly the anothe issue, but still try to investigate here. |
I was using an older version (0.10.0) but updated to the latest (0.12.3) and the json pointer path loading seemed to break for me as well. I don't see a way to request the Schema subset after loading the full schema via the json pointer, either. |
Given the schema:
with the wrong pointer to the type of 'myProperty' (for example, when type is misspelled). This schema succesfully pass the next json:
I expect that library should fail when I load the schema (with the GeneraionException or StandardGenerationException).
Currently the library passes such verification with a warning:
WARNING: No match for #/$defs/MyType
. But I cannot get 'programmatic' access to this case, so all warnings just leave in logsReason:
As I understand the standard, we cannot define the ref "#/$defs/myType2" in some another file and should be resolved in current context. So all local refrences must be available at schema resolution stage
Such behavior is critical in my application, where the library is used for schema linting as well. Will be good to have errors during schema load (for local refrences) of when schema is validated (for absolute refrences in external files).
The text was updated successfully, but these errors were encountered: