Skip to content

rasmusrim/openapi-generator-csharp-system-text-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSharp generator using System.Text.Json

I have made a fork of the csharp generator using System.Text.Json instead of Newtonsoft.

Clone it, and then run your openapi-generator-cli command as normal, but add a -t with the path to the cloned directory. I would do something like this:

npx @openapitools/openapi-generator-cli generate -i http://localhost:5166/swagger/v1/swagger.json -g csharp -o Api.ClientSdk --library httpclient --additional-properties=packageName=Flyttavle.Plugins.PortFlowPlugin,nullableReferenceTypes=true,useDateTimeOffset=true -t ~/source/repos/openapi-generator-csharp-systen-text-json

It is only tested on one of my codebases. Please raise an issue and submit a swagger file if you find some problems.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published