You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provider developers encountering Terraform Provider development, or the framework schema/type system, for the first time may want to introduce default value handling for managed resource schemas. Especially when working with collection-based nested attributes, the current website documentation only mentions the common use case StaticValue() default value functions, but no implementation details about how to do so.
Proposal
On pages such as https://developer.hashicorp.com/terraform/plugin/framework/handling-data/attributes/list-nested, in the Plan Modification section, expand the default documentation a bit more with a real-world code example, or at least give some additional details that (in that specific case) the StaticValue() function should be passed a types.List of types.Object of the nested attributes that match the schema definition.
Module version
Use-cases
Provider developers encountering Terraform Provider development, or the framework schema/type system, for the first time may want to introduce default value handling for managed resource schemas. Especially when working with collection-based nested attributes, the current website documentation only mentions the common use case
StaticValue()
default value functions, but no implementation details about how to do so.Proposal
On pages such as https://developer.hashicorp.com/terraform/plugin/framework/handling-data/attributes/list-nested, in the Plan Modification section, expand the default documentation a bit more with a real-world code example, or at least give some additional details that (in that specific case) the
StaticValue()
function should be passed atypes.List
oftypes.Object
of the nested attributes that match the schema definition.References
null
#930The text was updated successfully, but these errors were encountered: