Documentation ¶
Index ¶
- Variables
- func Callback(callback *openapi3.CallbackRef, visitor SchemaVisitor, ...) error
- func Components(components *openapi3.Components, visitor SchemaVisitor, ...) error
- func Document(t *openapi3.T, visitor SchemaVisitor, levelNames ...map[string][]string) error
- func Header(header *openapi3.HeaderRef, visitor SchemaVisitor, ...) error
- func MediaType(mediaType *openapi3.MediaType, visitor SchemaVisitor, ...) error
- func Operation(operation *openapi3.Operation, visitor SchemaVisitor, ...) error
- func Parameter(parameter *openapi3.ParameterRef, visitor SchemaVisitor, ...) error
- func ParameterSchema(parameter *openapi3.Parameter, visitor SchemaVisitor, ...) error
- func PathItem(pathItem *openapi3.PathItem, visitor SchemaVisitor, ...) error
- func RequestBody(requestBody *openapi3.RequestBodyRef, visitor SchemaVisitor, ...) error
- func Response(response *openapi3.ResponseRef, visitor SchemaVisitor, ...) error
- func ResponseSchema(response *openapi3.Response, visitor SchemaVisitor, ...) error
- func Responses(responses openapi3.Responses, visitor SchemaVisitor, ...) error
- type SchemaVisitor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestType = "request" ResponseType = "response" ParameterType = "parameter" SchemaType = "schema" TypeKey = "type" NameKey = "name" InKey = "in" PathKey = "path" MethodKey = "method" OperationKey = "operation" ContentKey = "content" StatusKey = "status" )
Functions ¶
func Callback ¶
func Callback(callback *openapi3.CallbackRef, visitor SchemaVisitor, levelNames map[string][]string) error
Callback traverses all unique non-reference schemas in the given callback.
func Components ¶
func Components(components *openapi3.Components, visitor SchemaVisitor, levelNames map[string][]string) error
Components traverses the given components and all unique non-reference schemas in it.
func Header ¶
func Header(header *openapi3.HeaderRef, visitor SchemaVisitor, levelNames map[string][]string) error
Header traverses the given header and all unique non-reference schemas in it.
func MediaType ¶
func MediaType(mediaType *openapi3.MediaType, visitor SchemaVisitor, levelNames map[string][]string) error
MediaType traverses the given media type and all unique non-reference schemas in it.
func Parameter ¶
func Parameter(parameter *openapi3.ParameterRef, visitor SchemaVisitor, levelNames map[string][]string) error
Parameter traverses the given parameter and all unique non-reference schemas in it.
func ParameterSchema ¶
func PathItem ¶
func PathItem(pathItem *openapi3.PathItem, visitor SchemaVisitor, levelNames map[string][]string) error
PathItem traverses the given path item and calls the visitor for each schema.
func RequestBody ¶
func RequestBody(requestBody *openapi3.RequestBodyRef, visitor SchemaVisitor, levelNames map[string][]string) error
RequestBody traverses the given request body and all unique non-reference schemas in it.
func Response ¶
func Response(response *openapi3.ResponseRef, visitor SchemaVisitor, levelNames map[string][]string) error
Response traverses the given response and all unique non-reference schemas in it.
func ResponseSchema ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.