Closed mgwoj closed 1 year ago
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.
Terraform CLI and Framework Versions
Terraform v1.4.5 github.com/hashicorp/terraform-plugin-framework v1.2.0
Terraform Plugin Framework Code
Terraform Configuration
Expected Behavior
Actual Behavior
Steps to Reproduce
.
Logs
No response
Additional Information
The problem is that
MarkdownDescription
function forOneOf
validator is using%q
to escape and build string representation for the array of strings. In normal situation it would work perfectly when thevalues
are defined as[]string
. However this validator is usingvalues
defined as[]types.String
andtypes.String
has its own implementation ofString()
function which is also escaping the string value using%q
. As the result there is double escaping, generating confusing\"
in the output message. Please modifyMarkdownDescription
and implement own concatenation of string values. I guess similar issue is for other string validators.Code of Conduct