Improve reflection error messaging for unexported fields with tfsdk
tags
#866
Labels
enhancement
New feature or request
reflection
Issues and PRs about the reflection subsystem used to convert between attr.Values and Go values.
tf-devex-triage
Terraform DevEx project tracking
Background
For the reflection package, the error message when there are mismatched/unexported fields for building a struct with
tfsdk
tags can be confusing.It is possible that a field name might accidentally not be exported, but still have a
tfsdk
tag attached to it, like below:Proposal
Adjust the reflection error message to describe the exact fields that are invalid (unexported with a
tfsdk
tag, maybe other errors?)The text was updated successfully, but these errors were encountered: