Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Tool which creates Enfusion structs/classes

License

NotificationsYou must be signed in to change notification settings

ELifeRPG/Code-Generator

Repository files navigation

Tool which takes an OpenAPI json and creates Enfusion structs/classes out of it.

Install

Adding the package registry

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.

Install the dotnet tool

To make the tool available on your machine, execute the following command:dotnet tool install -g ELifeRPG.CodeGenerator.DotNetToolIf you want to specify a prerelease or want to use a specific version, please head to thedotnet-cli documentation.

Usage

To get an overview of the tool, visit the inbuilt documentation by executingenfusion-codegen --help.

Examples

Generate classes out of a file

enfusion-codegen generate ./openapi.json --output ./out

Generate classes from a remote file

enfusion-codegen generate http://localhost/openapi.json --output ./out


[8]ページ先頭

©2009-2025 Movatter.jp