opentofu/configs/configschema
Martin Atkins bbbf22d8e4 configs/configschema: Block.StaticValidateTraversal method
This allows basic static validation of a traversal against a schema, to
verify that it represents a valid path through the structural parts of
the schema.

The main purpose of this is to produce better error messages (using our
knowledge of the schema) than we'd be able to achieve by just relying
on HCL expression evaluation errors. This is particularly important for
nested blocks because it may not be obvious whether one is represented
internally by a set or a list, and incorrect usage would otherwise produce
a confusing HCL-oriented error message.
2018-11-26 08:25:03 -08:00
..
coerce_value_test.go use correct block types in CoerceValue 2018-10-18 18:09:43 -04:00
coerce_value.go fix "too many items" error message 2018-11-13 18:41:53 -05:00
decoder_spec_test.go configschema: Handle nested blocks containing dynamic-typed attributes 2018-10-16 19:11:09 -07:00
decoder_spec.go configschema: Handle nested blocks containing dynamic-typed attributes 2018-10-16 19:11:09 -07:00
doc.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
implied_type_test.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
implied_type.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
internal_validate_test.go plans/objchange: logic for merging prior state with config 2018-10-16 19:11:09 -07:00
internal_validate.go plans/objchange: logic for merging prior state with config 2018-10-16 19:11:09 -07:00
nestingmode_string.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
none_required.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
schema.go move "configschema" from "config" to "configs" 2018-10-16 18:50:29 -07:00
validate_traversal_test.go configs/configschema: Block.StaticValidateTraversal method 2018-11-26 08:25:03 -08:00
validate_traversal.go configs/configschema: Block.StaticValidateTraversal method 2018-11-26 08:25:03 -08:00