types

package
v2.1.1824 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyType = `empty.Type`

Variables

View Source
var ModelsPackage = "models"

Functions

func ApiHasBody added in v2.1.1677

func ApiHasBody(api *spec.Api) bool

func ApiHasType added in v2.1.1677

func ApiHasType(api *spec.Api, typ string) bool

func BodyHasType added in v2.1.1677

func BodyHasType(api *spec.Api, typ string) bool

func DefaultValue

func DefaultValue(typ *spec.TypeDef, value string) string

func GenerateEmpty

func GenerateEmpty(module module.Module) *generator.CodeFile

func GoType

func GoType(typ *spec.TypeDef) string

func GoTypeSamePackage

func GoTypeSamePackage(typ *spec.TypeDef) string

func OperationHasType added in v2.1.1677

func OperationHasType(operation *spec.NamedOperation, typ string) bool

func PlainGoType

func PlainGoType(typ string, modelsPackage string) string

func VersionModelsHasType added in v2.1.1677

func VersionModelsHasType(version *spec.Version, typ string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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