So just to give a brief explanation of what I'm trying to achieve. I'm trying to figure out how to properly read remote schemas that are modular and referencing each other though the $ref's. For example:
Schema-B: http://example.com/schemas/schema-b.json (getting this url from Schema-A should be by combining the $id and the $ref together while having the $id act as the base url)
Would there be a way to dereference Schema-A and have Schema-B referenced through the url above by using $id? If not, what's the recommended way of referencing externally hosted schemas?
Hi guys.
So just to give a brief explanation of what I'm trying to achieve. I'm trying to figure out how to properly read remote schemas that are modular and referencing each other though the $ref's. For example:
// Schema-A
// Schema-B resides in the same directory but in another file
Now let's say both of these schemas are being hosted online and are reachable via the urls below:
getting this url from Schema-A should be by combining the $id and the $ref together while having the $id act as the base url
)Would there be a way to dereference Schema-A and have Schema-B referenced through the url above by using $id? If not, what's the recommended way of referencing externally hosted schemas?
Your support would be greatly appreciated!