Documentation
¶
Index ¶
- func GenerateModels(specification *spec.Spec, moduleName string, generatePath string) *generator.Sources
- type EncodingJsonGenerator
- func (g *EncodingJsonGenerator) EnumValuesStrings(model *spec.NamedModel) string
- func (g *EncodingJsonGenerator) GenerateEnumsHelperFunctions() *generator.CodeFile
- func (g *EncodingJsonGenerator) GenerateErrorModels(httperrors *spec.HttpErrors) *generator.CodeFile
- func (g *EncodingJsonGenerator) GenerateVersionModels(version *spec.Version) *generator.CodeFile
- type Generator
- type Modules
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncodingJsonGenerator ¶ added in v2.1.2134
type EncodingJsonGenerator struct {
Modules *Modules
}
func NewEncodingJsonGenerator ¶ added in v2.1.2134
func NewEncodingJsonGenerator(modules *Modules) *EncodingJsonGenerator
func (*EncodingJsonGenerator) EnumValuesStrings ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) EnumValuesStrings(model *spec.NamedModel) string
func (*EncodingJsonGenerator) GenerateEnumsHelperFunctions ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) GenerateEnumsHelperFunctions() *generator.CodeFile
func (*EncodingJsonGenerator) GenerateErrorModels ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) GenerateErrorModels(httperrors *spec.HttpErrors) *generator.CodeFile
func (*EncodingJsonGenerator) GenerateVersionModels ¶ added in v2.1.2134
func (g *EncodingJsonGenerator) GenerateVersionModels(version *spec.Version) *generator.CodeFile
type Generator ¶ added in v2.1.2134
type Generator interface { GenerateVersionModels(version *spec.Version) *generator.CodeFile GenerateErrorModels(httperrors *spec.HttpErrors) *generator.CodeFile EnumValuesStrings(model *spec.NamedModel) string GenerateEnumsHelperFunctions() *generator.CodeFile }
func NewGenerator ¶ added in v2.1.2134
Click to show internal directories.
Click to hide internal directories.