Documentation
¶
Index ¶
- Variables
- func CheckDeprecated(docs spec.Doc) bool
- func ConvertPath(path string) string
- func GetDoc(p *plugin.Plugin) (*openapi3.T, error)
- func GetJsonFieldName(m spec.Member) string
- func GetMapValueType(typ string) (string, error)
- func GetProperty(properties map[string]string, key string) string
- func GetStructSchema(typ spec.DefineStruct, types map[string]spec.DefineStruct, ...) *openapi3.SchemaRef
- func IsUint(format string) bool
- func MergeRequired(rs ...[]string) []string
- func ParseInteger(format string, s string) (float64, error)
- func ParseNumber(format string, s string) (float64, error)
- func ParseTags(s *openapi3.SchemaRef, tags []*spec.Tag) (bool, bool)
- func ParseValue(typ string, format string, s string) (interface{}, error)
- func UnescapeValidateString(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultResponseDesc = "A successful response."
View Source
var (
ErrInvalidType = fmt.Errorf("invalid type")
)
Functions ¶
func CheckDeprecated ¶
CheckDeprecated check Deprecated: comment
func ConvertPath ¶
func GetJsonFieldName ¶
func GetMapValueType ¶
GetMapValueType map[[2]string][]string -> []string
func GetStructSchema ¶
func GetStructSchema(typ spec.DefineStruct, types map[string]spec.DefineStruct, schemas openapi3.Schemas) *openapi3.SchemaRef
func MergeRequired ¶
MergeRequired merge schema required fields
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.