- Notifications
You must be signed in to change notification settings - Fork0
Tool which creates Enfusion structs/classes
License
ELifeRPG/Code-Generator
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Tool which takes an OpenAPI json and creates Enfusion structs/classes out of it.
The package is available from GitHub Packages. There is one major downside of using GH Packages: despite being a public package, you need to authenticate against the registry (you can read more of this quirkshere).
To consume the packages from our GitHub registry, simple add a new source specifying your credentialsdotnet nuget add source --username "YOURUSER" --password "YOURPASSWORD" --name ELifeRPG "https://nuget.pkg.github.com/ELifeRPG/index.json"
.Alternatively, you canuse a personal-access-token (scope:read:packages
) usingPublicToken
asusername
parameter and the token aspassword
parameter. Kind notice: do not commit the PAT as it will berevoked immediately.
To make the tool available on your machine, execute the following command:dotnet tool install -g ELifeRPG.CodeGenerator.DotNetTool
If you want to specify a prerelease or want to use a specific version, please head to thedotnet-cli documentation.
To get an overview of the tool, visit the inbuilt documentation by executingenfusion-codegen --help
.
enfusion-codegen generate ./openapi.json --output ./out
enfusion-codegen generate http://localhost/openapi.json --output ./out
About
Tool which creates Enfusion structs/classes