openapi-preprocessor icon indicating copy to clipboard operation
openapi-preprocessor copied to clipboard

Add option to keep `$ref`s (don't dereference `$ref`s)

Open outdooracorn opened this issue 2 years ago • 1 comments

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".

outdooracorn avatar Nov 10 '22 11:11 outdooracorn