Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2026 Changes in this version + var ErrSchemaUnavailable = errors.New("output JSON schema unavailable") + type JSONWireType interface + JSONWireType func() reflect.Type type Plan + func (p *Plan) FormatSelector() (spec.BindSource, bool) + func (p *Plan) JSONOnly() bool + func (p *Plan) JSONSchema() (map[string]any, error) v1.0.0 Sep 22, 2026 Changes in this version + func ContentType(format string) (string, error) + type CompileInput struct + Component *spec.Component + DataField string + Type reflect.Type + type Compiler struct + Lookup func(string) (reflect.Type, error) + func (c Compiler) Compile(input CompileInput) (*Plan, error) + type Marshaller interface + Marshal func(any) ([]byte, error) + type Plan struct + func (p *Plan) DefaultFormat() string + func (p *Plan) Encode(ctx context.Context, format string, value any) (Result, error) + func (p *Plan) TransportReady() bool + func (p *Plan) Type() reflect.Type + func (p *Plan) Wire(format string) (WireContract, error) + type Result struct + ContentDisposition string + ContentType string + Data []byte + Filename string + type WireContract struct + Binary bool + ContentDisposition string + ContentType string + JSON *jsonmarshal.WireShape + Type reflect.Type