Versions in this module Expand all Collapse all v0 v0.14.0 Jul 11, 2026 Changes in this version + func Canonicalize(value any) (any, error) + func NormalizeMediaType(value string) (string, map[string]string) + func ParseScalar(value, kind string) any + type CompatibilityDecoder interface + CompatibilityKind func() string + type DecodeInput struct + Body io.Reader + Context context.Context + Direction Direction + Encoding interface{ ... } + Header http.Header + MediaType string + Parameters map[string]string + Schema *base.Schema + type Decoder interface + Decode func(*DecodeInput) (any, error) + func BinaryDecoder() Decoder + func CSVDecoder() Decoder + func FormCompatibilityDecoder() Decoder + func FormDecoder() Decoder + func JSONDecoder() Decoder + func MultipartDecoder() Decoder + func TextDecoder() Decoder + func XMLCompatibilityDecoder() Decoder + func XMLDecoder() Decoder + func YAMLDecoder() Decoder + func ZIPDecoder(limits ZipLimits) Decoder + type DecoderFunc func(*DecodeInput) (any, error) + func (f DecoderFunc) Decode(input *DecodeInput) (any, error) + type DecodingError struct + Direction Direction + Err error + MediaType string + func (e *DecodingError) Error() string + func (e *DecodingError) Unwrap() error + type Direction uint8 + const Request + const Response + type EncodeInput struct + Context context.Context + Direction Direction + Encoding interface{ ... } + Header http.Header + MediaType string + Schema *base.Schema + Value any + type Encoder interface + Encode func(*EncodeInput) ([]byte, error) + func JSONEncoder() Encoder + type EncoderFunc func(*EncodeInput) ([]byte, error) + func (f EncoderFunc) Encode(input *EncodeInput) ([]byte, error) + type EncoderRegistration struct + Encoder Encoder + MediaType string + type FailureContext struct + MediaType *v3.MediaType + Operation *v3.Operation + Request *http.Request + Response *http.Response + Schema *base.Schema + type Registration struct + Decoder Decoder + MediaType string + func StandardDecoderRegistrations() []Registration + type Registry struct + func NewRegistry(decoders []Registration, encoders []EncoderRegistration) *Registry + func (r *Registry) Decoder(mediaType string) (Decoder, string, map[string]string) + func (r *Registry) Encoder(mediaType string) (Encoder, string, map[string]string) + func (r *Registry) ExactDecoder(mediaType string) Decoder + func (r *Registry) Precompute(mediaTypes []string) *Registry + func (r *Registry) WithDecoder(mediaType string, decoder Decoder) *Registry + type ZipLimits struct + CompressedSize int64 + Entries int + ExpandedSize int64 + ExpansionRatio float64 + func (l ZipLimits) Validate() error