You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
While a helper/schema.Schema.Elem may contain a schema.ValueType Go type in some very limited cases (e.g. root TypeMap attributes), its support is limited, its not implemented in many providers, and otherwise can cause a panic in the Terraform Plugin SDK:
panic: invalid element type: schema.ValueType
For consistency and safety, a new extra check can recommend the more common &schema.Schema{Type: /* ... */} implementation.
Community Note
Description
While a
helper/schema.Schema.Elem
may contain aschema.ValueType
Go type in some very limited cases (e.g. rootTypeMap
attributes), its support is limited, its not implemented in many providers, and otherwise can cause a panic in the Terraform Plugin SDK:For consistency and safety, a new extra check can recommend the more common
&schema.Schema{Type: /* ... */}
implementation.New Checks
Flagged Provider Code
Passing Provider Code
References
The text was updated successfully, but these errors were encountered: