Documentation ¶
Index ¶
- Variables
- func CSVMergeLines(src []string) []string
- func CSVSplit(line string) ([]string, error)
- func Convert(src, dst interface{}) error
- func ExpandTagForScheme(scheme *openapi3.Schema, tag KeyValue)
- func GenerateOAuth2Scheme(m map[interface{}]interface{}) (string, *openapi3.SecurityScheme, error)
- func GenerateSecurityScheme(text string) (string, *openapi3.SecurityScheme, error)
- func GenerateSecuritySchemeInterface(i interface{}) (string, *openapi3.SecurityScheme, error)
- func GenerateSecuritySchemes(text string) (*openapi3.SecuritySchemes, error)
- func MergeMapSlice(a *yaml.MapSlice, b *yaml.MapSlice)
- func ParseMapSlice(str string) (*yaml.MapSlice, error)
- func StringifyMapSlice(obj *yaml.MapSlice) (string, error)
- func TrimSpaceAll(cells []string)
- type Config
- type Generator
- type KeyValue
- type OpeDoc
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultIdentScheme = map[string]*openapi3.Schema{
"int": {Type: "integer"},
"int32": {Type: "integer", Format: "int32"},
"int64": {Type: "integer", Format: "int64"},
"string": {Type: "string"},
}
View Source
var PathPattern = regexp.MustCompile("\\(([A-Z]+) (/.+)\\)")
Functions ¶
func CSVMergeLines ¶
func ExpandTagForScheme ¶
func GenerateOAuth2Scheme ¶
func GenerateOAuth2Scheme(m map[interface{}]interface{}) (string, *openapi3.SecurityScheme, error)
func GenerateSecurityScheme ¶
func GenerateSecurityScheme(text string) (string, *openapi3.SecurityScheme, error)
func GenerateSecuritySchemeInterface ¶
func GenerateSecuritySchemeInterface(i interface{}) (string, *openapi3.SecurityScheme, error)
func GenerateSecuritySchemes ¶
func GenerateSecuritySchemes(text string) (*openapi3.SecuritySchemes, error)
func MergeMapSlice ¶
func MergeMapSlice(a *yaml.MapSlice, b *yaml.MapSlice)
func ParseMapSlice ¶
func StringifyMapSlice ¶
func TrimSpaceAll ¶
func TrimSpaceAll(cells []string)
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type KeyValue ¶
type KeyValue map[string]interface{}
func (KeyValue) ConvertFrom ¶
func (kv KeyValue) ConvertFrom(m *map[interface{}]interface{})
func (KeyValue) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.