typegen

package module
v0.0.0-...-5da7bf1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 0 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
build +ignore templates package comment
build +ignore templates package comment

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL