Skip to content

Expand Default Value Handling Documentation for Nested Attributes #939

@bflad

Description

@bflad

Module version

v1.6.0

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 a types.List of types.Object of the nested attributes that match the schema definition.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions