Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = map[string]any{ "Generate": Generate, "https": WithHttps, "flowHandler": WithFlowHandler, "domain": WithDomain, }
Functions ¶
func Generate ¶
Generate means generate yakit.HTTPFlow via openapi2/3 scheme use WithFlowHandler to recv and handle it Example:
openapi.Generate(fileName, openapi.flowHandler(flow => { dump(flow.Url) }))
func OpenAPIToHTTPFlow ¶
func OpenAPIToHTTPFlow(t string)
Types ¶
type OpenAPIConfig ¶
func NewDefaultOpenAPIConfig ¶
func NewDefaultOpenAPIConfig() *OpenAPIConfig
type Option ¶
type Option func(config *OpenAPIConfig)
func WithFlowHandler ¶
WithFlowHandler means use this handler
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package openapi2 parses and writes OpenAPIv2 specification documents.
|
Package openapi2 parses and writes OpenAPIv2 specification documents. |
Package openapi3 parses and writes OpenAPI 3 specification documents.
|
Package openapi3 parses and writes OpenAPI 3 specification documents. |
Click to show internal directories.
Click to hide internal directories.