Documentation
¶
Index ¶
- func BodyRefHasInvalidSiblings(body *openapi.RequestBody, version string) bool
- func CallbackRefHasInvalidSiblings(callback *openapi.Callback, version string) bool
- func ExampleRefHasInvalidSiblings(example *openapi.Example, version string) bool
- func ExtraHas(extra map[string]any, keys ...string) bool
- func HasInvalidReferenceExtra(extra map[string]any, version string) bool
- func HasNonExtensionExtra(extra map[string]any) bool
- func HasParameterRefSiblings(param *openapi.Parameter, version string) bool
- func HasSchemaRefSiblings(schema *openapi.Schema) bool
- func HasSerializedExample(example *openapi.Example) bool
- func HeaderRefHasInvalidSiblings(header *openapi.Header, version string) bool
- func IsAbsoluteURI(value string) bool
- func IsFixedMethod(method string) bool
- func IsHTTPSURI(value string) bool
- func IsLocalReference(ref string, resources map[string]any) bool
- func IsOpenAPI31(version string) bool
- func IsOpenAPI32(version string) bool
- func IsURIReference(value string) bool
- func IsValidParameterIn(in string) bool
- func LinkRefHasInvalidSiblings(link *openapi.Link, version string) bool
- func MarshalAny(value any) any
- func MediaTypeAllowsNamedEncoding(mediaType string) bool
- func MediaTypeBase(mediaType string) string
- func MediaTypeIsMultipart(mediaType string) bool
- func MediaTypeRefHasInvalidSiblings(mediaType *openapi.MediaType, version string) bool
- func NormalizeTemplatedPath(path string) string
- func OperationsOf(item *openapi.PathItem) map[string]*openapi.Operation
- func ReferenceTargetExists(ref string, resources map[string]any) bool
- func RegisterSchemaAnchor(value reflect.Value, base, fieldName string, resources map[string]any)
- func RegisterSchemaResource(value reflect.Value, base string, resources map[string]any)
- func ResolveJSONPointer(root any, pointer string) any
- func ResolveParameterRef(ref string, componentParameters map[string]*openapi.Parameter) *openapi.Parameter
- func ResolveParameterRefs(params []*openapi.Parameter, componentParameters map[string]*openapi.Parameter) []*openapi.Parameter
- func ResolveURIReference(base, ref string) (string, bool)
- func ResponseRefHasInvalidSiblings(response *openapi.Response, version string) bool
- func SchemaBaseURI(value reflect.Value, base string) string
- func SchemaTypeIncludesArray(schema *openapi.Schema) bool
- func SecurityRequirementMayUseURI(name, version string) bool
- func SecuritySchemeRefHasInvalidSiblings(scheme *openapi.SecurityScheme, version string) bool
- func ValidParameterStyle(in, style, version string) bool
- func ValidateAnySchema(context string, value any, version string, visited map[*openapi.Schema]bool) []error
- func ValidateCallback(context string, callback *openapi.Callback, version string, ...) []error
- func ValidateComponentKeys[T any](kind string, values map[string]T) []error
- func ValidateComponents(components *openapi.Components, version string, operationIDs map[string]string, ...) []error
- func ValidateDocument(doc *openapi.Document, version string) []error
- func ValidateEncoding(context string, encoding *openapi.Encoding, version string) []error
- func ValidateExample(context string, example *openapi.Example, version string) []error
- func ValidateHeader(context string, header *openapi.Header, version string) []error
- func ValidateInfo(info openapi.Info, version string) []error
- func ValidateLink(context string, link *openapi.Link, version string) []error
- func ValidateMediaType(context, mediaTypeName string, mediaType *openapi.MediaType, version string) []error
- func ValidateOAuthFlow(context string, flow *openapi.OAuthFlow, version string, ...) []error
- func ValidateOAuthFlows(context string, flows *openapi.OAuthFlows, version string) []error
- func ValidateOperation(context string, op *openapi.Operation, version string, ...) []error
- func ValidateParameterSerialization(context string, param *openapi.Parameter, version string) []error
- func ValidateParameters(context string, params []*openapi.Parameter, version string, ...) []error
- func ValidatePathItem(path string, item *openapi.PathItem, version string, ...) []error
- func ValidatePathItemOperations(context string, item *openapi.PathItem, version string, ...) []error
- func ValidatePathParams(path, method string, params []*openapi.Parameter) []error
- func ValidateQueryParameterMix(context string, params []*openapi.Parameter) []error
- func ValidateReferenceTargets(doc *openapi.Document) []error
- func ValidateRequestBody(context string, body *openapi.RequestBody, version string) []error
- func ValidateResponse(context string, response *openapi.Response, version string) []error
- func ValidateSchema(context string, schema *openapi.Schema, version string, ...) []error
- func ValidateSchema304Fields(context string, schema *openapi.Schema) []error
- func ValidateSecurityRequirements(context string, requirements []openapi.SecurityRequirement, ...) []error
- func ValidateSecurityScheme(context string, scheme *openapi.SecurityScheme, version string) []error
- func ValidateServer(context string, server *openapi.Server) []error
- func ValidateTagParents(tags []openapi.Tag, tagByName map[string]int) []error
- func ValidateTags(tags []openapi.Tag, version string) []error
- func WithoutFragment(raw string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyRefHasInvalidSiblings ¶
func BodyRefHasInvalidSiblings(body *openapi.RequestBody, version string) bool
func HasNonExtensionExtra ¶
func HasParameterRefSiblings ¶
func HasSchemaRefSiblings ¶
func HasSerializedExample ¶
func IsAbsoluteURI ¶
func IsFixedMethod ¶
func IsHTTPSURI ¶
func IsOpenAPI31 ¶
func IsOpenAPI32 ¶
func IsURIReference ¶
func IsValidParameterIn ¶
func MarshalAny ¶
func MediaTypeBase ¶
func MediaTypeIsMultipart ¶
func NormalizeTemplatedPath ¶
func RegisterSchemaAnchor ¶
func RegisterSchemaResource ¶
func ResolveJSONPointer ¶
func ResolveParameterRef ¶
func ResolveParameterRefs ¶
func ResolveURIReference ¶
func SchemaTypeIncludesArray ¶
func SecuritySchemeRefHasInvalidSiblings ¶
func SecuritySchemeRefHasInvalidSiblings(scheme *openapi.SecurityScheme, version string) bool
func ValidParameterStyle ¶
func ValidateAnySchema ¶
func ValidateCallback ¶
func ValidateComponentKeys ¶
func ValidateComponents ¶
func ValidateEncoding ¶
func ValidateExample ¶
func ValidateHeader ¶
func ValidateMediaType ¶
func ValidateOAuthFlow ¶
func ValidateOAuthFlows ¶
func ValidateOAuthFlows(context string, flows *openapi.OAuthFlows, version string) []error
func ValidateOperation ¶
func ValidateParameters ¶
func ValidatePathItem ¶
func ValidatePathParams ¶
func ValidateRequestBody ¶
func ValidateRequestBody(context string, body *openapi.RequestBody, version string) []error
func ValidateResponse ¶
func ValidateSchema ¶
func ValidateSchema304Fields ¶
func ValidateSecurityRequirements ¶
func ValidateSecurityRequirements( context string, requirements []openapi.SecurityRequirement, schemes map[string]*openapi.SecurityScheme, version string, ) []error
func ValidateSecurityScheme ¶
func ValidateSecurityScheme(context string, scheme *openapi.SecurityScheme, version string) []error
func ValidateTagParents ¶
func WithoutFragment ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.