Documentation
¶
Index ¶
- func GetSecurity(secSchemes openapi3.SecuritySchemes, ...) ([][]Security, error)
- type ComponentSchema
- type Components
- type Header
- type HeaderParameter
- type Info
- type Operation
- type Path
- type PathDir
- type PathItem
- type PathOld
- type PathParameter
- type PathParameters
- type Prefix
- type QueryParameter
- type Response
- type Schema
- type SchemaProperty
- type Security
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecurity ¶ added in v0.0.12
func GetSecurity(secSchemes openapi3.SecuritySchemes, secRequirements openapi3.SecurityRequirements) ([][]Security, error)
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
}
Security [][]Security
DefaultResponse *Response
Responses []*Response
}
func NewOperation ¶
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
type Security ¶ added in v0.0.12
type Security struct {
Requirement []string
Scheme openapi3.SecurityScheme
}
Click to show internal directories.
Click to hide internal directories.