oapi-codegen
oapi-codegen copied to clipboard
Add support for hiding excluded components instead of not generating them at all
Overview
As a user would like to be able to only hide selected components but still have code generated. The new option(s) would allow to still generate affected components but exclude them from router registration and from the embedded spec. This would allow for incremental development of specific areas of api and having ability to expose them when ready. Currently components are either frontend visible or not generated at all.
Implementation
Currently I see two possible approaches
either adding extra flag like exclusion_mode: skip | hide
or adding extra set of options parallel to currently existing exclude_ family that is:
hide-tags: []
hide-operation-ids: []
hide-schemas: []