Skip to content

[csharp] Generics yields illegal class names in output #2033

@ghost

Description

My endpoints use generic C# types like Resource[Employee], that unfortunately yields illegal class names (and strange filenames) in the generated C#.

The generated class/file names for the above example should be "Resource_Employee" rather then "Resource[Employee]" since it is a concrete instance that is being generated and not a generic type.

I.e. For any generic C# type GT the name of the generated file/class by swagger-codegen should be GT_A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions