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(emptyModule module.Module) *generator.CodeFile
- func IsEnumModel(typ *spec.TypeDef) bool
- 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
- type Types
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 IsEnumModel ¶ added in v2.1.2134
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 ¶
Click to show internal directories.
Click to hide internal directories.