OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
[ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The visibility of the modules/openapi-generator/src/main/resources/csharp-netcore/GlobalConfiguration.mustache is currently public partial class GlobalConfiguration. This should be defined as {{>visibility}} partial class GlobalConfiguration.
Otherwise you will get a compile error when parameter nonPublicApi=true is set.
Bug Report Checklist
Description
The visibility of the
modules/openapi-generator/src/main/resources/csharp-netcore/GlobalConfiguration.mustache
is currentlypublic partial class GlobalConfiguration
. This should be defined as{{>visibility}} partial class GlobalConfiguration
. Otherwise you will get a compile error when parameternonPublicApi=true
is set.openapi-generator version
master branch
OpenAPI declaration file content or url
Generation Details
Parameter:
nonPublicApi=true
Suggest a fix
{{>visibility}} partial class GlobalConfiguration