Skip to content

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

@t08094a

Description

@t08094a

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [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.

openapi-generator version

master branch

OpenAPI declaration file content or url
Generation Details

Parameter: nonPublicApi=true

Suggest a fix

{{>visibility}} partial class GlobalConfiguration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions