Documentation ¶
Index ¶
- Constants
- Variables
- func ApiHasBody(api *spec.Api) bool
- func ApiHasType(api *spec.Api, typ string) bool
- func ApiHasUrlParams(api *spec.Api) bool
- func BodyHasType(api *spec.Api, typ string) bool
- func DefaultValue(typ *spec.TypeDef, value string) string
- func GenerateEmpty(module module.Module) *generator.CodeFile
- func GoType(typ *spec.TypeDef) string
- func GoTypeSamePackage(typ *spec.TypeDef) string
- func IsModel(def *spec.TypeDef) bool
- func ModelsHasEnum(models []*spec.NamedModel) bool
- func OperationHasType(operation *spec.NamedOperation, typ string) bool
- func OperationHasUrlParams(operation *spec.NamedOperation) bool
- func VersionModelsHasType(models []*spec.NamedModel, typ string) bool
Constants ¶
View Source
const EmptyType = `empty.Type`
Variables ¶
View Source
var ErrorsModelsPackage = "errmodels"
View Source
var VersionModelsPackage = "models"
Functions ¶
func ApiHasBody ¶
func ApiHasUrlParams ¶ added in v2.1.2134
func GoTypeSamePackage ¶
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.
Click to show internal directories.
Click to hide internal directories.