Versions in this module Expand all Collapse all v0 v0.14.0 Apr 24, 2024 v0.13.0 Feb 27, 2024 Changes in this version + const FullPath + const PathAfterVersion + const PathFromApi + const PathRegex + const VersionFromPath + var FuncMap = template.FuncMap + func AddPredefinedRegexes(initialRegexes map[string]string) + func ImportsUsedByPath(pathItem openapi3.PathItem, repositoryPath string) []string + func Load() + func PropertyToGoType(p Property) (string, error) + func SchemaToText(element interface{}, defaultObjectName string, currentPkg string) (string, error) + func ShouldHavePointer(p Property) bool + type Components struct + func NewComponents(data openapi3.Components) Components + func (c Components) Imports() (result []string) + type Operation struct + Data *openapi3.Operation + Name string + func NewOperation(data *openapi3.Operation, defaultName string) Operation + func (o Operation) AllResponseContent() (result []*openapi3.MediaType) + func (o Operation) RequestRefsUsed() (result []string) + func (o Operation) RequestStruct(structRegistry map[string]string) *_go.Struct + func (o Operation) ResponseRefsUsed() (result []string) + func (o Operation) ResponseStruct(structRegistry map[string]string) *_go.Struct + func (o Operation) StructForMessage(messageType string, structRegistry map[string]string) (*_go.Struct, error) + type Parameters struct + func (r Parameters) ExternalImports() []string + type Property struct + CurrentPkg string + OmitJSON bool + PropertyData interface{} + PropertyName string + RequiredList []string + TypePrefix string + func NewProperty(data interface{}, name string, requiredList []string, currentPkg string, ...) Property + func (p Property) IsOptional() bool + func (p Property) SetOmitJSON(val bool) Property + type RefChecker interface + ContainsRef func() bool + CountFields func() int + type Regex struct + Name string + Value string + func NewRegex(value openapi3.Schema) (*Regex, error) + type RequestBody struct + func NewRequestBody(body openapi3.RequestBodyRef) RequestBody + func (r RequestBody) ExternalImports() (result []string) + type Response struct + func (r Response) ExternalImports() (result []string) + type Responses struct + func NewResponses(src *openapi3.Responses) *Responses + func (r Responses) ExternalImports() (result []string) + type Schema struct + Data *openapi3.SchemaRef + Name string + func NewSchema(name string, data *openapi3.SchemaRef) Schema + func (s Schema) AllProperties() (result openapi3.Schemas) + func (s Schema) AllSchemas() openapi3.SchemaRefs + func (s Schema) HasAdditionalProperties() bool + func (s Schema) StructProperties() (result openapi3.SchemaRefs) + func (s Schema) Type() string + type SchemaRef openapi.SchemaRef + func (s SchemaRef) AllSchemas() openapi3.SchemaRefs + func (s SchemaRef) HasAdditionalProperties() bool + func (s SchemaRef) StructProperties() (result openapi3.SchemaRefs)