types

package
v2.1.2102-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 8, 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(module module.Module) *generator.CodeFile

func GoType

func GoType(typ *spec.TypeDef) string

func GoTypeSamePackage

func GoTypeSamePackage(typ *spec.TypeDef) string

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

This section is empty.

Jump to

Keyboard shortcuts

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