Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentSchema ¶ added in v0.0.11
type Components ¶ added in v0.0.11
type Components struct {
Schemas []ComponentSchema
}
func NewComponents ¶ added in v0.0.11
func NewComponents(spec openapi3.Components) Components
type Header ¶
type HeaderParameter ¶
type Operation ¶
type Operation struct {
PathItem *PathItem
HTTPMethod string
Method string
OperationID string
Operation *openapi3.Operation
Parameters struct {
Path PathParameters
Query []QueryParameter
Headers []*HeaderParameter
}
DefaultResponse *Response
Responses []*Response
}
type Path ¶
type Path struct {
Spec string
Dirs []*PathDir
Params PathParameters
}
type PathDir ¶
type PathDir struct {
Raw Prefix
ParamRef *PathParameter
}
type PathParameter ¶
type PathParameters ¶
type PathParameters []*PathParameter
func (PathParameters) Get ¶
func (ps PathParameters) Get(name string) (*PathParameter, bool)
type QueryParameter ¶
type Response ¶
type Response struct {
StatusCode string
Operation *Operation
Spec *openapi3.Response
RefName string
Headers []Header
}
func NewResponse ¶
func NewResponse(responseStatusCode string, o *Operation, r *openapi3.ResponseRef) *Response
type Schema ¶
type SchemaProperty ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.