James Bardin
b3a491d035
use correct block types in CoerceValue
...
When creating Null or Unknown values during CoerceValue, the the outer
block type was being used rather than the current block type.
2018-10-18 18:09:43 -04:00
James Bardin
8f295fcb22
CoerceValue should insert Null for unset attrs
...
This matches the decoder spec, where a value unset in the configuration
is always Null.
2018-10-16 18:53:51 -07:00
Martin Atkins
d8bf3cc4e0
configschema: Fix ConfigSchema bugs with nested blocks
...
We were iterating over the wrong value to recursively coerce content for
nested blocks, and also incorrectly constructing the cty.Path used in
errors.
2018-10-16 18:53:51 -07:00
Martin Atkins
479c6b2466
move "configschema" from "config" to "configs"
...
The "config" package is no longer used and will be removed as part
of the 0.12 release cleanup. Since configschema is part of the
"new world" of configuration modelling, it makes more sense for
it to live as a subdirectory of the newer "configs" package.
2018-10-16 18:50:29 -07:00