9c4784b144
This adds ValidateSpec, a new decoder Spec that allows one to add custom validations to work with values at decode-time. The validation is run on the value after the wrapped spec is applied to the expression in question. Diagnostics are expected to be returned, with the author having flexibility over whether or not they want to specify a range; if one is not supplied, the range of the wrapped expression is used. |
||
---|---|---|
.. | ||
block_labels.go | ||
decode.go | ||
doc.go | ||
gob.go | ||
public_test.go | ||
public.go | ||
schema.go | ||
spec_test.go | ||
spec.go | ||
variables_test.go | ||
variables.go |