Skip to content

[WIP] web framework independent type generator with validation for OpenAPI 3.0 specifications.

License

Notifications You must be signed in to change notification settings

jxsl13/openapi-typegen

Repository files navigation

openapi-typegen

[WIP] web framework independent type generator with validation for OpenAPI 3.0 specifications.

go mod install github.com/jxsl13/openapi-typegen/cmd/openapi-typegen@latest

Usage

$ openapi-typegen --help

  TYPEGEN_FILE       file path to your openapi.yaml (default: "openapi.yaml")
  TYPEGEN_OUT        out file path or 'stdout' (default: "stdout")
  TYPEGEN_PACKAGE    package name of the generated file (default: "api")

Usage:
  openapi-typegen -p api -f openapi.yaml -o types.gen.go [flags]
  openapi-typegen [command]

Available Commands:
  completion  Generate completion script
  help        Help about any command

Flags:
  -f, --file string      file path to your openapi.yaml (default "openapi.yaml")
  -h, --help             help for openapi-typegen
  -o, --out string       out file path or 'stdout' (default "stdout")
  -p, --package string   package name of the generated file (default "api")

Use "openapi-typegen [command] --help" for more information about a command.

About

[WIP] web framework independent type generator with validation for OpenAPI 3.0 specifications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published