C# client generator code bug
See original GitHub issueDue to logic in /src/NSwag.CodeGeneration.CSharp/Models/CSharpClientTemplateModel.cs line 173-176
parameterCode = _settings.CSharpGeneratorSettings.JsonLibrary == CSharpJsonLibrary.NewtonsoftJson ?
"new Newtonsoft.Json.JsonSerializerSettings { Converters = " + parameterCode.Substring(2) + " }" :
parameterCode.Substring(2);
generated code contains
var settings = w Newtonsoft.Json.JsonSerializerSettings();
e.g. “new” substringed to __w
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
[BUG] [C] Generating C client undefined object.h in #2338
I am trying to compile the library generated using openapi-generator with the past command, because this is what i need for my project,...
Read more >Add C client generator
OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically ...
Read more >Finding and Understanding Bugs in C Compilers
Every compiler we tested was found to crash and also to silently generate wrong code when presented with valid input. In this paper...
Read more >API Code & Client Generator | Swagger Codegen
Codegen simplifies your build process by generating server stubs and client SDKs for any API defined with the OpenAPI specification. Download Codegen today....
Read more >java - How to generated code from openapi yaml file using ...
I am using "openapi-generator-maven-plugin" to generate code from openapi yaml file and code is getting generated using below configuration ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
After updating NJsonSchema to 10.4.1.0, and NSwag to 13.10.9.0, bug is now doesn’t reproduce.
Thank you for your support!
Is this still an issue?