Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# Generated code results in unusable variables #90

Open
churstz opened this issue Mar 5, 2024 · 0 comments
Open

C# Generated code results in unusable variables #90

churstz opened this issue Mar 5, 2024 · 0 comments

Comments

@churstz
Copy link

churstz commented Mar 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant