Documentation ¶
Index ¶
- Variables
- func ParseSpec(spec *openapi3.T) error
- func ParseYamlPath(path string) error
- func WritePackage(dir string, code string) error
- type SpecMeta
- func (m *SpecMeta) GetCode() string
- func (m *SpecMeta) GetDefaultValue(val interface{}, typ string) string
- func (m *SpecMeta) GetDoc(doc string) string
- func (m *SpecMeta) GetPrimitiveType(typ string, format string) string
- func (m *SpecMeta) GetterName(propName string) string
- func (m *SpecMeta) IsValidGoBasicType(typ string) bool
- func (m *SpecMeta) LogVersions()
- func (m *SpecMeta) NewMethod(doc string, objName string, objType string, name string, inArgs []string, ...) string
- func (m *SpecMeta) NewProperty(doc string, name string, typ string) string
- func (m *SpecMeta) NewPropertyGetter(objType string, propName string, propType string, defaultVal interface{}) string
- func (m *SpecMeta) NewPropertySetter(objType string, propName string, propType string) string
- func (m *SpecMeta) NewStruct(doc string, name string, body string) string
- func (m *SpecMeta) ParseSchema(name string, schema *openapi3.SchemaRef) error
- func (m *SpecMeta) ParseSchemas() error
- func (m *SpecMeta) SetterName(propName string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidGoBasicTypes = []string{
"bool",
"int",
"int32",
"int64",
"float32",
"float64",
"string",
}
Functions ¶
func ParseYamlPath ¶
func WritePackage ¶
Types ¶
type SpecMeta ¶
func (*SpecMeta) GetDefaultValue ¶
func (*SpecMeta) GetPrimitiveType ¶
func (*SpecMeta) GetterName ¶
func (*SpecMeta) IsValidGoBasicType ¶
func (*SpecMeta) LogVersions ¶
func (m *SpecMeta) LogVersions()
func (*SpecMeta) NewProperty ¶
func (*SpecMeta) NewPropertyGetter ¶
func (*SpecMeta) NewPropertySetter ¶
func (*SpecMeta) ParseSchema ¶
func (*SpecMeta) ParseSchemas ¶
func (*SpecMeta) SetterName ¶
Click to show internal directories.
Click to hide internal directories.