OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.77k stars 6.57k forks source link

[BUG] [csharp-netcore] Visibility in GlobalConfiguration.mustache #11357

Open t08094a opened 2 years ago

t08094a commented 2 years ago

Bug Report Checklist

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.

openapi-generator version

master branch

OpenAPI declaration file content or url
Generation Details

Parameter: nonPublicApi=true

Suggest a fix

{{>visibility}} partial class GlobalConfiguration

wing328 commented 2 years ago

Thanks for reporting the issue. Can you please file a PR with the suggested fix?

t08094a commented 2 years ago

I've added a pull request #11359