Open BRB2000 opened 4 years ago
Nobody who can shed a light on this?
This is probably a bug
Thank you your reply. Did you conclude that based on my sample. or did you actually try to generate a client yourself? Because at this point, im not quite sure, if this could maybe come down to two factors. One of them could be, that the client for some reason not listens to the type field in the swagger.json, but instead creates a type with the content of the name attribute. The other thing is, that it could potentially come down to the sheer size of the API specification, and how the code generation task is handled in Visual Studio. I have no evidence for the latter though.
I'd expect that it does not generate $ in the parameter names: https://github.com/RicoSuter/NSwag/blob/85ae862fd6d68173a201a79e0ad06e0be2ec5de1/src/NSwag.CodeGeneration/DefaultParameterNameGenerator.cs#L32
When generating a REST client for AppCenter (https://openapi.appcenter.ms/) from Visual Studio 2019 (add connected service), code like this is generated:
This of course is not working, because there are $ signs inserted with the type. Is there any reason for this? Am I missing something?