types

package
v2.1.2142-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyType = `empty.Type`

Variables

View Source
var ErrorsModelsPackage = "errmodels"
View Source
var VersionModelsPackage = "models"

Functions

func ApiHasBody

func ApiHasBody(api *spec.Api) bool

func ApiHasType

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

func ApiHasUrlParams added in v2.1.2134

func ApiHasUrlParams(api *spec.Api) bool

func BodyHasType

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

func DefaultValue

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

func GenerateEmpty

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

func IsEnumModel added in v2.1.2134

func IsEnumModel(typ *spec.TypeDef) bool

func IsModel added in v2.1.2134

func IsModel(def *spec.TypeDef) bool

func ModelsHasEnum added in v2.1.2134

func ModelsHasEnum(models []*spec.NamedModel) bool

func OperationHasType

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

func OperationHasUrlParams added in v2.1.2134

func OperationHasUrlParams(operation *spec.NamedOperation) bool

func VersionModelsHasType

func VersionModelsHasType(models []*spec.NamedModel, typ string) bool

Types

type Types added in v2.1.2134

type Types struct{}

func NewTypes added in v2.1.2134

func NewTypes() *Types

func (*Types) GoType added in v2.1.2134

func (types *Types) GoType(typ *spec.TypeDef) string

func (*Types) GoTypeSamePackage added in v2.1.2134

func (types *Types) GoTypeSamePackage(typ *spec.TypeDef) string

Jump to

Keyboard shortcuts

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