Replies: 5 comments 1 reply
-
https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-9.4.2 Some extracts...
In short, you COULD do this, and it MIGHT work, but you really probably SHOULD NOT do this, and you MUST NOT do this if you care about interoperability or reliability (an implementations support for this might change). |
Beta Was this translation helpful? Give feedback.
-
@Relequestual thanks, I had an error in my example (I'm very sorry about that). We have two directly embedded schemas in $defs. We must first resolve |
Beta Was this translation helpful? Give feedback.
-
The short answer is no, those aren't valid reference. The short explanation is that it's because JSON Pointers aren't allowed to cross document boundaries. I'll follow up later with a better explanation. |
Beta Was this translation helpful? Give feedback.
-
@jdesrosiers thanks! Looking forward for long explanation. |
Beta Was this translation helpful? Give feedback.
-
also asked at OAI/OpenAPI-Specification#2739 |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I was wondering if JSON Schema like the following is valid and would correctly resolve given JSON Schema 2020-12 spec.
$ref
fields inPartOfMySharedResponse
are pointing to future values ofSharedResponse
. Thank you very much!Beta Was this translation helpful? Give feedback.
All reactions