Skip to content

C# Generated code results in unusable variables #90

Description

@churstz

I'm working with a vendor's swagger in which someone thought it would be great to create parameters representing object hierarchy using semicolons. In short think query string parameters names customer:firstname, customer.lastnname, customer.favcolor. This results in C# code where variables names are rendered as
string customer:firstname,
string customer.lastname,
string customer.favcolor

none of which are valid in C#. The request is to update the code generation for C# variables to replace special characters with something valid like an underscore. Honestly it doesn't matter what the replacement character is as long as the C# variable is the same everywhere.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions