Documentation ¶
Index ¶
- Variables
- func CastFunc(t string) string
- func CopySchema(field astutils.FieldMeta) Schema
- func ElementType(t string) string
- func IsBuiltin(field astutils.FieldMeta) bool
- func IsEnum(field astutils.FieldMeta) bool
- func IsOptional(t string) bool
- func IsSlice(t string) bool
- func IsStruct(field astutils.FieldMeta) bool
- func IsSupport(t string) bool
- func IsVarargs(t string) bool
- func NewSchema(structmeta astutils.StructMeta) Schema
- func RefAddDoc(schema *Schema, doc string)
- func SchemaOf(field astutils.FieldMeta) *Schema
- func ToSlice(t string) string
Constants ¶
This section is empty.
Variables ¶
var Enums = make(map[string]astutils.EnumMeta)
var SchemaNames []string
SchemaNames schema names from components of OpenAPI3.0 json document also struct names from vo package
var Schemas = make(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 ElementType ¶ added in v1.0.5
ElementType get element type string from slice
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.