I have a swagger schema file from a 3rd party supplier that I need to generate my C# classes from.
I have tried to use Visual Studio 2017 with the "REST API Client Code Generator" Visual Studio extension [login to view URL] as it includes 4 different tools (AutoRest, NSwag, OpenAPI & Swagger).
I have created a project and uploaded it to Github [login to view URL]
This contains a VS solution with 4 projects, one project for each tool. I have managed to get NSwag to generate my classes but when deserializing the objects to JSON the result is not what the 3rd party expects. All other tools (AutoRest, OpenAPI & Swagger) throws an exception when trying to generate the classes.
Each project has a unit test that asserts that the JSON from the deserialize objects match the expected JSON by the provider (please see [login to view URL] in the solution root folder).
I only need one of these projects to generate the C# classes and deserialize these objects into JSON that then matches the AirSearchRequestExample.json.
I'm also open to another solution/tool achieve the same outcome.
Also, if the original swagger docs requires any "tweaks", I appreciate if this can be done at runtime so I do not have to remember to manually edit the swagger schema when my 3rd party releases a new version .
9 freelancers are bidding on average $522 for this job
Hi there, please leave a message on my chat so we can discuss the budget and deadline of the project. I have read your project description and i'm confident i can do this project for you perfectly. Thanks .
Hi. I'm very interested in your project and I can do your work well. I'm a C# expert and have many experiences in .NET, .NET core, ASP.NET, ASP.NET core or something. Hope to contact. Thank you.