Versions in this module Expand all Collapse all v0 v0.10.1 Dec 31, 2025 Changes in this version type UndeclaredValue + SpecCol int + SpecLine int v0.10.0 Dec 30, 2025 Changes in this version + func TruncateValue(v any) any + type Direction int + const DirectionRequest + const DirectionResponse + func (d Direction) String() string + type Input struct + BasePath string + Data any + Direction Direction + Options *config.ValidationOptions + Schema *base.Schema + Version float32 + type Result struct + UndeclaredValues []UndeclaredValue + Valid bool + func ValidateBody(schema *base.Schema, data any, direction Direction, ...) *Result + type UndeclaredValue struct + DeclaredProperties []string + Direction Direction + Name string + Path string + Type string + Value any + func ValidateCookies(request *http.Request, declaredParams []*v3.Parameter, ...) []UndeclaredValue + func ValidateQueryParams(request *http.Request, declaredParams []*v3.Parameter, ...) []UndeclaredValue + func ValidateRequestHeaders(headers http.Header, declaredParams []*v3.Parameter, ...) []UndeclaredValue + func ValidateResponseHeaders(headers http.Header, declaredHeaders *map[string]*v3.Header, ...) []UndeclaredValue + type Validator struct + func NewValidator(options *config.ValidationOptions, version float32) *Validator + func (v *Validator) Validate(input Input) *Result