-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Is your feature request related to a problem? Please describe.
I have, to keep my specs somewhat reasonable, split out several data types such as the enum into distinct files. When referencing these datatypes in the root yaml, I then ref "./enum-openapi.yaml#/components/schema/enumFoo".
My expectation is that, when using the glob import for source files, these references would be merged and treated as a single, effective file. Instead, types that are in OTHER files are not included in the export, and excessive types with a hundred pluss character names are created instead.
Describe the solution you'd like
A way to tell the generator to pre-process the openapi and treat it as one file if the reference exists in the fetched files.
Describe alternatives you've considered
I can theoretically manually pre-process using openapi-merge-cli, or I can merge the openapi-files back teogher by hand, but neither solution is ideal as that massivly increases the upkeep.
(If Im crazy and missing an option, Id love to know it, but I was unable to find an option that tells the generator to export everything)