Documentation
¶
Index ¶
- func ParseOperation(op *Operation) *openapi3.Operation
- func ParsePathItem(item PathItem) openapi3.PathItem
- type MediaType
- type Operation
- type Parameter
- type ParameterRef
- type Parameters
- type ParsedPath
- type Path
- type PathItem
- type RequestBody
- type RequestBodyRef
- type Response
- type ResponseRef
- type Schema
- type SchemaRef
- type Schemas
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseOperation ¶
ParseOperation converts your custom Operation struct to openapi3.Operation.
func ParsePathItem ¶
Types ¶
type Operation ¶
type Operation struct {
Tags []string
OperationID string
Description string
Deprecated bool
Parameters Parameters
RequestBody *RequestBodyRef
Responses map[string]*ResponseRef
}
type ParameterRef ¶
type Parameters ¶
type Parameters []ParameterRef
type ParsedPath ¶
type RequestBody ¶
type RequestBodyRef ¶
type RequestBodyRef struct {
Ref string
Value *RequestBody
}
type ResponseRef ¶
type SchemaRef ¶
func NewSchemaRef ¶
Click to show internal directories.
Click to hide internal directories.