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
Adding CustomType
to a ListAttribute
changes generated description to List of Dynamic
#342
Comments
Drive-by note: The framework website documentation does not go into too many of the details about creating a custom collection type, but in that situation, the custom type "owns" the entire type definition (e.g. the attribute Maybe the framework could/should raise an attribute implementation error when it detects both In your situation it might be a matter of doing something like (removing the exported CustomType: cctypes.MultisetType{basetypes.ListType{ElementType: basetypes.StringType}}, That should cause the GetProviderSchema RPC to return the "full" type information for the attribute, which is what terraform-plugin-docs eventually uses. |
For what its worth about:
Could also be turned around as a framework feature request that attributes could automatically do what you tried to do there with both fields. There is the |
@bflad Thanks for the explanation. |
+1 to
I'll add an Issue in https://github.com/hashicorp/terraform-plugin-framework. |
Yes, removing the |
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. |
Terraform CLI and terraform-plugin-docs Versions
In
go.mod
:github.com/hashicorp/terraform-plugin-docs v0.18.0
Provider Code
Expected Behavior
Generate:
health_check_arns
(List of String) The Amazon Resource Names (ARNs) of the health check to associate with the protection.Actual Behavior
Generated:
health_check_arns
(List of Dynamic) The Amazon Resource Names (ARNs) of the health check to associate with the protection.Steps to Reproduce
tfplugindocs generate --flags
How much impact is this issue causing?
Medium
Additional Information
Relates hashicorp/terraform-provider-awscc#1463.
Code of Conduct
The text was updated successfully, but these errors were encountered: