You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for creating this tool, it looks really useful.
It would be great to have an option that doesn't dereference $refs. There are some references, like ones that point to schemas in #/components/schemas, that I would like to keep in the single bundled/processed file.
The $refs should still be updated when multiple files are merged/bundled into one though.
E.g. "$ref": "../../global/schemas.json#/ExampleSchema" should become "$ref": "#/components/schemas/ExampleSchema".
The text was updated successfully, but these errors were encountered:
This is already supported from day 0. However, there is a design constraint (mentioned in README) for your included document: the $ref must use an absolute JSON pointer (the part after # must start with /) and the referenced resources must be put in a place that follows the standard Open API layout for storing components.
So for a concrete answer to this question, you have to restructure the file schemas.json to put ExampleSchema under /components/schemas instead of at root. Then your $ref will point to ../../global/schemas.json#/components/schemas/ExampleSchema
Thanks for creating this tool, it looks really useful.
It would be great to have an option that doesn't dereference
$ref
s. There are some references, like ones that point to schemas in#/components/schemas
, that I would like to keep in the single bundled/processed file.The
$ref
s should still be updated when multiple files are merged/bundled into one though.E.g.
"$ref": "../../global/schemas.json#/ExampleSchema"
should become"$ref": "#/components/schemas/ExampleSchema"
.The text was updated successfully, but these errors were encountered: