Documentation ¶
Index ¶
- Variables
- func CastFunc(t string) string
- func CopySchema(field astutils.FieldMeta) Schema
- func IsBuiltin(field astutils.FieldMeta) bool
- func IsOptional(t string) bool
- func IsSlice(t string) bool
- func IsSupport(t string) bool
- func IsVarargs(t string) bool
- func NewSchema(structmeta astutils.StructMeta) Schema
- func SchemaOf(field astutils.FieldMeta) *Schema
- func ToSlice(t string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var SchemaNames []string
SchemaNames schema names from components of OpenAPI3.0 json document
View Source
var Schemas map[string]Schema
Schemas from components of OpenAPI3.0 json document
Functions ¶
func CopySchema ¶
CopySchema as SchemaOf returns pointer, so deepcopy the schema the pointer points
func IsBuiltin ¶
IsBuiltin check whether field is built-in type https://pkg.go.dev/builtin or not
func IsOptional ¶
func NewSchema ¶
func NewSchema(structmeta astutils.StructMeta) Schema
NewSchema new schema from astutils.StructMeta
func SchemaOf ¶
SchemaOf reference https://golang.org/pkg/builtin/ type bool type byte type complex128 type complex64 type error type float32 type float64 type int type int16 type int32 type int64 type int8 type rune type string type uint type uint16 type uint32 type uint64 type uint8 type uintptr
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.