hashicorp / hashicorp/terraform-plugin-framework

Add docs/example for (de)serialization of framework types, especially collections

Open
#1,019 0 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
384
Forks
107
Avg merge
3m
Merged PRs (30d)
1

Description

### Module version

```
v1.10.0 currently referenced by the docs
```

### Use-cases

I'm implementing an attribute with a complex type (list of nested objects). The docs [1][2] show how to define the schema, but only have cursory examples for converting to/from framework types to my own (backend) type hierarchy. I found some forum discussion and other provider code (see below) to implement the conversion myself, but an example in the framework docs itself really is missing in my opinion.

[1] https://developer.hashicorp.com/terraform/plugin/framework/handling-data/attributes/list-nested
[2] https://developer.hashicorp.com/terraform/plugin/framework/handling-data/attributes/object

### Attempted Solutions

Helpful links I found:
-
-
- #962

some other providers doing similar conversions:

-
-
-
-
-

### Proposal

### References

Related:
- #258

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.