-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
$ref doesn't support url #1512
Comments
Not sure if we should implement this... could you look through the JSON Schema spec (https://json-schema.org/) and see what it might have to say about $ref's with a HTTPS url? |
The specification is very explicit in saying on section 8.3 that:
On the latest draft, this section is here. Nevertheless, I would also like to see this feature supported being it out-of-the-box or by allowing its users to provide their own URL resolver implementation. |
I like the idea of users being able to choose between several given $ref resolver implementations (JSON pointer, URL, or a combination of multiple ones), and also provide their own custom $ref resolver implementation if they want. |
👍 +1 for URL $ref |
👍 +1 for URL $ref |
1 similar comment
👍 +1 for URL $ref |
In JSON schema draft 2020-12 (which is the latest as of writing this) this is specified:
For the definition of "URI-Reference" the document links to RFC3986 in one place. This means to me that any absolute URI would be valid here, even schemes other than Personally I would like to add my +1 for implementing HTTP(S) resolving, as we are working towards modularising schema and referencing it directly via absolute HTTPS URLs. This happening in a browser context will probably mean some requirements for servers though (sending CORS headers, handling OPTIONS requests). |
Here is a valid schema:
It throws exception when dereference $ref.
The text was updated successfully, but these errors were encountered: