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 code generation for collection and object attributes with associated external type #74

Closed
bendbennett opened this issue Oct 20, 2023 · 1 comment · Fixed by #75
Closed
Labels
enhancement New feature or request

Comments

@bendbennett
Copy link
Contributor

Currently, custom type and value types, and the To<....>()/From<....>() methods that are used to convert between Terraform Plugin Framework types and API types have been implemented for

  • list, map, set, and single nested attributes
  • list, set, and single nested blocks.
  • primitive attributes (i.e., bool, float64, int64, number, and string attributes)

Code generation should also produce custom type and value types, and the To<....>()/From<....>() methods for List, Map, Object, and Set attributes.

Dependencies

Related

@bendbennett bendbennett added the enhancement New feature or request label Oct 20, 2023
bendbennett added a commit that referenced this issue Oct 23, 2023
bendbennett added a commit that referenced this issue Oct 23, 2023
…for set attribute for data source, and list, and set attribute for provider and resource (#74)
bendbennett added a commit that referenced this issue Oct 23, 2023
…for map attribute for data source, provider and resource (#74)
bendbennett added a commit that referenced this issue Oct 23, 2023
bendbennett added a commit that referenced this issue Oct 23, 2023
…map, set, single nested attribute, or list, set, single nested block (#74)
bendbennett added a commit that referenced this issue Oct 23, 2023
…ect attribute for data source, provider, and resource (#74)
bendbennett added a commit that referenced this issue Oct 23, 2023
bendbennett added a commit that referenced this issue Oct 24, 2023
bendbennett added a commit that referenced this issue Oct 24, 2023
bendbennett added a commit that referenced this issue Oct 24, 2023
…for set attribute for data source, and list, and set attribute for provider and resource (#74)
bendbennett added a commit that referenced this issue Oct 24, 2023
…for map attribute for data source, provider and resource (#74)
bendbennett added a commit that referenced this issue Oct 24, 2023
bendbennett added a commit that referenced this issue Oct 24, 2023
…map, set, single nested attribute, or list, set, single nested block (#74)
bendbennett added a commit that referenced this issue Oct 24, 2023
…ect attribute for data source, provider, and resource (#74)
bendbennett added a commit that referenced this issue Oct 24, 2023
bendbennett added a commit that referenced this issue Oct 24, 2023
bendbennett added a commit that referenced this issue Oct 25, 2023
…ted external type (#75)

* Adding generation of custom type and value type with to/from methods for data source list attribute (#74)

* Adding tests for list attribute imports, schema, and model field (#74)

* Adding generation of custom type and value type, and to/from methods for set attribute for data source, and list, and set attribute for provider and resource (#74)

* Adding generation of custom type and value type, and to/from methods for map attribute for data source, provider and resource (#74)

* Refactoring import, schema, and model field methods on object attribute to use associated external type (#74)

* Refactoring to use nested object as reference to object within list, map, set, single nested attribute, or list, set, single nested block (#74)

* Add custom type and value type, and to/from method generation for object attribute for data source, provider, and resource (#74)

* Removing hardcoded attribute names (#74)

* Adding changelog entry (#74)

* Fixing value types (#74)

* Return unknown if error diagnostic is raised during From() method (#74)

* Bumping to latest version of codegen-spec (#74)

* Fixing handling of generated To() method for object attribute (#74)
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
1 participant