Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OpenApiConverter ¶
type OpenApiConverter struct {
// contains filtered or unexported fields
}
OpenApiConverter converts an OpenAPI JSON/YAML spec into a UtcpManual.
func NewConverter ¶
func NewConverter( openapiSpec map[string]interface{}, specURL string, providerName string, ) *OpenApiConverter
NewConverter creates a new converter. If providerName is empty, it will be derived from spec.info.title.
func NewConverterFromURL ¶ added in v1.6.6
func NewConverterFromURL(specURL string, providerName string) (*OpenApiConverter, error)
NewConverterFromURL fetches the spec (YAML or JSON) from the given URL and returns a converter. providerName can be empty to auto-derive from the spec.
func (*OpenApiConverter) Convert ¶
func (c *OpenApiConverter) Convert() UtcpManual
Convert parses the OpenAPI spec and builds a UtcpManual.
Click to show internal directories.
Click to hide internal directories.