Documentation ¶
Index ¶
- func GetNameFromRef(s string) string
- func MakeIdentifier(s string) string
- func MakeTitledIdentifier(s string) string
- type Field
- func (f Field) CheckDefault() bool
- func (f Field) IsArray() bool
- func (f Field) IsBoolean() bool
- func (f Field) IsComponent() bool
- func (f Field) IsCustom() bool
- func (f Field) IsDate() bool
- func (f Field) IsDateTime() bool
- func (f Field) IsFile() bool
- func (f Field) IsFloat() bool
- func (f Field) IsInteger() bool
- func (f Field) IsString() bool
- func (f Field) IsStruct() bool
- func (f Field) IsUnixTime() bool
- func (f Field) SecondsVarName() string
- func (f Field) StrVarName() string
- type FieldType
- type TypeDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNameFromRef ¶
func MakeIdentifier ¶
func MakeTitledIdentifier ¶
Types ¶
type Field ¶
type Field struct { Name string // UserID GoType string // int64 Parameter string // user_id Type FieldType // IntegerField Schema openapi3.SchemaType }
Field represents struct field
func (Field) CheckDefault ¶ added in v0.0.11
func (Field) IsComponent ¶ added in v0.0.6
func (Field) IsDateTime ¶
func (Field) IsUnixTime ¶
func (Field) SecondsVarName ¶
func (Field) StrVarName ¶
type TypeDef ¶
func ProcessObjSchema ¶
func ProcessRootSchema ¶
func ProcessRootSchema(schema openapi3.SchemaType) ([]TypeDef, error)
func (TypeDef) HasNoFileFields ¶ added in v0.0.10
func (TypeDef) HasNoStringFields ¶
Click to show internal directories.
Click to hide internal directories.