Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
azrdev opened this issue Jul 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@azrdev
Copy link

azrdev commented Jul 18, 2024

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:

some other providers doing similar conversions:

Proposal

References

Related:

@azrdev azrdev added the enhancement New feature or request label Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant