models

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPackageName = "openapi"

DefaultPackageName used in the models source code

Variables

This section is empty.

Functions

func GenerateEnums

func GenerateEnums(specFile io.Reader, dst string, opts Options) error

GenerateEnums outputs the Go enum models with validators

Types

type Options

type Options struct {
	// PackageName of the generated models source code (`DefaultPackageName` by default)
	PackageName string
}

Options represent all the possible options of the generator

Jump to

Keyboard shortcuts

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