openapi

package
v1.0.0-RC Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateComponents

func ValidateComponents(ctx context.Context, components openapi3.Components) (err error)

func ValidateContact

func ValidateContact(_ context.Context, _ *openapi3.Contact) error

func ValidateContent

func ValidateContent(ctx context.Context, content openapi3.Content) error

func ValidateHeader

func ValidateHeader(ctx context.Context, header *openapi3.Header) error

func ValidateHeaderRef

func ValidateHeaderRef(ctx context.Context, ref *openapi3.HeaderRef) error

func ValidateIdentifier

func ValidateIdentifier(_ string) error

func ValidateInfo

func ValidateInfo(ctx context.Context, info *openapi3.Info) error

func ValidateLicense

func ValidateLicense(_ context.Context, license *openapi3.License) error

func ValidateMediaType

func ValidateMediaType(ctx context.Context, mediaType *openapi3.MediaType) error

func ValidateOAS3

func ValidateOAS3(ctx context.Context, oas3 openapi3.Swagger) error

func ValidateOAuthFlow

func ValidateOAuthFlow(_ context.Context, flow *openapi3.OAuthFlow, typ oAuthFlowType) error

func ValidateOAuthFlows

func ValidateOAuthFlows(ctx context.Context, flows *openapi3.OAuthFlows) error

func ValidateOperation

func ValidateOperation(ctx context.Context, operation *openapi3.Operation) error

func ValidateParameter

func ValidateParameter(ctx context.Context, parameter *openapi3.Parameter) error

func ValidateParameterRef

func ValidateParameterRef(ctx context.Context, ref *openapi3.ParameterRef) error

func ValidatePathItem

func ValidatePathItem(ctx context.Context, pathItem *openapi3.PathItem) error

func ValidatePaths

func ValidatePaths(ctx context.Context, paths openapi3.Paths) error

func ValidateRequestBody

func ValidateRequestBody(ctx context.Context, requestBody *openapi3.RequestBody) error

func ValidateRequestBodyRef

func ValidateRequestBodyRef(ctx context.Context, ref *openapi3.RequestBodyRef) error

func ValidateResponse

func ValidateResponse(ctx context.Context, response *openapi3.Response) error

func ValidateResponseRef

func ValidateResponseRef(ctx context.Context, ref *openapi3.ResponseRef) error

func ValidateSchema

func ValidateSchema(ctx context.Context, schema *openapi3.Schema, stack []*openapi3.Schema) (err error)

func ValidateSchemaRef

func ValidateSchemaRef(ctx context.Context, ref *openapi3.SchemaRef, stack []*openapi3.Schema) error

func ValidateSecurity

func ValidateSecurity(ctx context.Context, securities openapi3.SecurityRequirements) error

func ValidateSecurityRequirement

func ValidateSecurityRequirement(_ context.Context, _ openapi3.SecurityRequirement) error

func ValidateSecurityScheme

func ValidateSecurityScheme(ctx context.Context, ss *openapi3.SecurityScheme) error

func ValidateSecuritySchemeRef

func ValidateSecuritySchemeRef(ctx context.Context, ref *openapi3.SecuritySchemeRef) error

func ValidateServer

func ValidateServer(ctx context.Context, server *openapi3.Server) (err error)

func ValidateServers

func ValidateServers(ctx context.Context, servers openapi3.Servers) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL