Documentation
¶
Index ¶
- func ConvertToSchema(source interface{}, rootKey string) map[string]*openapi3.SchemaRef
- type Builder
- type Curl
- func (c *Curl) CreateTemplatePath(path *Path) string
- func (c *Curl) FindType(s string) string
- func (c *Curl) Parse() (*Path, error)
- func (c *Curl) RequiredField() func(input string) error
- func (c *Curl) SetText(text string)
- func (c *Curl) SetUniqueName(path *Path)
- func (c *Curl) Split() ([]string, error)
- func (c *Curl) Unmarshal(b string) (map[string]interface{}, error)
- type Fetch
- type Parser
- type Path
- type PathParser
- type Type
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder
func NewBuilder ¶
func NewBuilder(path PathParser) *Builder
func (*Builder) BuildPathMethod ¶
func (*Builder) RequiredField ¶
func (*Builder) SetSwagger ¶
type Curl ¶
type Curl struct {
// contains filtered or unexported fields
}
Curl structure
func (*Curl) CreateTemplatePath ¶
CreateTemplatePath - trying to identify variables on the path
func (*Curl) RequiredField ¶
RequiredField validation field
type Fetch ¶
type Fetch struct {
// contains filtered or unexported fields
}
func (*Fetch) RequiredField ¶
type Parser ¶
type Parser interface {
SetSource(source *wizard.Request)
SetSwagger(sw *openapi3.Swagger)
RequiredField() func(input string) error
BuildPathMethod() *openapi3.Swagger
}
Parser behavioral abstraction
type Path ¶
type Path struct {
Method string
SourceURL string
URL *url.URL
TemplatePath string
Headers map[string]string
PathVariables []*Variable
QueryVariables []*Variable
UniqueName string
SourceRequest string
ParseRequest map[string]interface{}
}
Path structure that we return after processing
func (*Path) HasAuthorization ¶ added in v0.0.6
HasAuthorization has auth check
Click to show internal directories.
Click to hide internal directories.