22d140e883
The usual way to use a configschema.Block is to obtain a hcldec spec from it and then decode an hcl.Body. There are inevitably situations though where a body has already been decoded into a cty.Value before we know which schema we need to use. This new method CoerceValue is intended to deal with this case, applying the schema to an already-decoded value in what should be an intuitive way for most situations. |
||
---|---|---|
.. | ||
coerce_value.go | ||
coerce_value_test.go | ||
decoder_spec.go | ||
decoder_spec_test.go | ||
doc.go | ||
implied_type.go | ||
implied_type_test.go | ||
internal_validate.go | ||
internal_validate_test.go | ||
nestingmode_string.go | ||
schema.go |