Open AnotherMuggle opened 4 months ago
I have the same issue when generating the C# client from a json file. The parameters that are not marked as required are appended to the request incorrectly, instead of being replaced by the actual values. It doesn't matter the request type (GET/POST/PUT) I am using NSwag.ApiDescription.Client v.14.1.0
I have the same issue. I have an asp.net 8 solution with minimal API defined like this:
.MapGet("/count/{test}", Test)
.WithName("Test")
.WithOpenApi();
However when used in the generated class, I get this result: https://localhost:61971/api/v1/count/08072946773{test}
You can see the bug marked "Bug here!" in the example generated C# code.
Example YAML
Example generated C#