terraform/configs/configschema
James Bardin 554cedab8a don't validate Min/Max block vals in CoerceValue
A provider may not have the data to fill in required block values in all
cases during the resource Read operation. This is more common in import,
because there is no initial configuration or state, and it's possible
some values are only provided in the configuration.

The original intent of MinItems and MaxItems in the schema was to
enforce configuration constraints, not to enforce what the resource
could save in the state.  Since the configuration is already statically
validated, and the Schema is validated against the configuration in a
separate step, we can drop these extra validation constraints in
CoerceValue and relax it to only ensure the types conform to what is
expected.
2019-08-15 10:02:39 -04:00
..
coerce_value.go don't validate Min/Max block vals in CoerceValue 2019-08-15 10:02:39 -04:00
coerce_value_test.go don't validate Min/Max block vals in CoerceValue 2019-08-15 10:02:39 -04:00
decoder_spec.go don't check MinItems with unknowns in blocks 2019-07-27 11:50:28 -07:00
decoder_spec_test.go don't check MinItems with unknowns in blocks 2019-07-27 11:50:28 -07:00
doc.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
empty_value.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
empty_value_test.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
implied_type.go plans/objchange: Hide sensitive attribute values in error messages 2019-02-11 17:26:50 -08:00
implied_type_test.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
internal_validate.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
internal_validate_test.go plans/objchange: logic for merging prior state with config 2018-10-16 19:11:09 -07:00
nestingmode_string.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
none_required.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
schema.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
validate_traversal.go configs/configschema: Introduce the NestingGroup mode for blocks 2019-04-10 14:53:52 -07:00
validate_traversal_test.go configs/configschema: Block.StaticValidateTraversal method 2018-11-26 08:25:03 -08:00