-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Code generated by NSwag.ApiDescription.Client 14.4.0 generates incorrect URLs #5165
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
Comments
caused by #5016 - is not backward compatible unfortunately |
The query format FundingSchemeIds=1,2,3 does not correctly bind to IEnumerable fundingSchemeIds in ASP.NET Core (.NET 6+). The default model binder expects repeated parameters like FundingSchemeIds=1&FundingSchemeIds=2&FundingSchemeIds=3 for correct binding. How should we handle this @alexfirs? |
@bifa-zuehlke i temporary downgraded to 14.2 until it fixed |
We found out the same issue. This is extremely breaking. Makes the generated C# clients useless because MS want it done differently as described by bifa-zuehlke. |
We also found this change and it broke the client generation and aray parameters is not working now. So need to solve it as fast as posible looks like and publish updated version of the library. |
Describe the bug
Code generated with NSwag.ApiDescription.Client 14.4.0 generates urls with enumerable int parameters a way that the standard WebApi model binder cannot handle.
Output
While the endpoint looks like
Somehow similar to: #5096 (but the version 14.2.0 seems off).
Version of NSwag toolchain, computer and .NET runtime used
Nuget package NSwag.ApiDescription.Client --version 14.4.0
To Reproduce
Visual Studio 2022 (Version 17.13.6) right click on project using the service > Add > Connected Service > Service References > (Existing) Refresh
Expected behavior
The url generated in the client still works as it did before in Version 14.3.0
The text was updated successfully, but these errors were encountered: