Unchase.OpenAPI.Connectedservice icon indicating copy to clipboard operation
Unchase.OpenAPI.Connectedservice copied to clipboard

C# Generated code results in unusable variables

Open churstz opened this issue 1 year ago • 0 comments

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.

churstz avatar Mar 05 '24 22:03 churstz