-
Notifications
You must be signed in to change notification settings - Fork 280
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
Relative paths between definition files are not resolved #260
Comments
Helo @sven1103 , thanks for opening this issue. As a quick fix you can set Later I will look into the problem in detail. |
Dear @erosb thank you for your quick reply. I added the Great!
Not a blocker no, but of course relative URIs give me some reusability advantage of the schema, if one wants to adapt the schema for local usage only, without or only restricted internet connection. Feel free to ping me, if you have more questions about this issue. |
Hello, I encountered a similar problem when I tried to validate UBL 2.2 JSON schemas. If you load "json-schema/maindoc/UBL-Order-2.2.json" a "FileNotFoundException" exception is thrown. One of the modules UBL-CommonBasicComponents-2.2.json is not resolved correctly. I also have a SchemaClient, that resolves the current URL to the "baseURL". The base URL is the URL of the main schema "json-schema/maindoc/UBL-Order-2.2.json".
Best Regards, |
Hello both, I fixed the bug during the weekend and it will be included in the next release. |
@erosb Great, thanks a lot for your quick response! |
Hello, version |
great @erosb thanks a lot! |
Dear all,
first: thanks a lot for this great library, which enables me to use JSON schema validation during QM procedures in data management for JSON-based metadata!
I am struggling with an
java.net.MalformedURLException: no protocol
exception for a complex schema, which I am unable to resolve.Given the following example root schema to reproduce my findings:
Let's say that the definitions are in a separate file in a subdir of the root schema's location
definitions
.And for the sake of modularity and structuring, the
door
property is defined in another json file:Validating an example object (which should throw a validation error because material is not a String)
throws:
Caused by: java.net.MalformedURLException: no protocol: stuff.json
(Stack-trace: https://pastebin.com/rQip3Gmn).I tried to set the default resolutions scope explicitly as well with the schema builder, but the issue remains.
So my question is: why is the relative path of
buildings.json#/house
resolved properly, but notstuff.json
? Am I violating the JSON schema specification?I am thankfully looking forward to any remarks/help!
Best, Sven
The text was updated successfully, but these errors were encountered: