-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Define the scope of $id resolution #2092
Comments
Let's make sure this work solves #2038 too. |
@philsturgeon let's please keep these issues separate. It's not clear that action should be taken on #2038, while the basic work here is straightforward. |
I think part of what needs to happen here is to point to the soon-to-be-consolidated (in the bugfix/clarification draft that will come out in coordination with OAS 3.1) guidance on loading JSON Schemas, and explain how that fits into processing OpenAPI files. @darrelmiller @webron I seem to recall a reluctance to get too much into OAS file processing, but since JSON Schema processing is defined and has a lot to do with ensuring that The main issue is determining the base URI. The relevant part of RFC 3986 and the JSON Schema spec is that in the absence of an Since the retrieval URI is |
We might also want to make sure that it's clear that if your Schema Object does have an If you are using a Schema Object with a |
@webron @darrelmiller if I put a non-Schema Object (like a Response Object) in its own file, what is the base URI for Reference Objects in that file? In particular, is |
"current document" means the document the $ref was actual found in, not the root document being processed. |
As per the TSC call Feb, 13th, a schema object's $id can be used from any other schema object in the OAS description. |
No description provided.
The text was updated successfully, but these errors were encountered: