cjbooms / fabrikt

Generates Kotlin Code from OpenApi3 Specifications
Apache License 2.0
155 stars 41 forks source link

Allow 'internal' visibility modifier on models and clients #308

Open davidschreiber opened 1 month ago

davidschreiber commented 1 month ago

For multi-modular projects, it would be desireable to reduce the visibility of generated classes (i.e. models and clients) to only the module in which they are used, by applying the internal visibility modifier to generated types. By making the visbility of generated types configurable (e.g. public as it is now, but also internal) projects could decide whether they want to expose the REST types to other modules, or hide the implementation from other parts of the project.

ulrikandersen commented 1 month ago

Hi @davidschreiber,

I've heard that wish from others too.

Would you be up for opening a PR?