oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Add support for hiding excluded components instead of not generating them at all

Open mleko opened this issue 1 year ago • 0 comments

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: []

mleko avatar Oct 23 '24 09:10 mleko