openapi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Spec *openapi3.T
)

Functions

func LoadOpenAPI added in v1.1.0

func LoadOpenAPI(data []byte)

func ParseSpec added in v1.1.0

func ParseSpec(data []byte) (*openapi3.T, error)

func SetDefaults

func SetDefaults(schema *openapi3.Schema, defaults map[string]interface{}) error

func Validate

func Validate(schema *openapi3.Schema, value map[string]interface{}) error

func ValidateParameters added in v1.1.0

func ValidateParameters(r *http.Request, parameters openapi3.Parameters) error

Types

type FormatValidatorFunc added in v1.0.0

type FormatValidatorFunc[T any] func(T) error

func (FormatValidatorFunc[T]) Validate added in v1.0.0

func (fn FormatValidatorFunc[T]) Validate(value T) error

Jump to

Keyboard shortcuts

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