Planned value does not match config value

I am using terraform plugin framework (v.1.4.2).

For one of the attribute of the resource, API normalizes the value to lowercase.
e.g. If the value in the config is Test, API returns test.

I tried to modify the plan (using ModifyPlan to change the value to lowercase) but got error planned value cty.StringVal(“test”) does not match config value cty.StringVal(“Test”)

Hi @akashgs :wave:t6:,
You can implement a custom string type with semantic equality handling to treat strings with different cases as semantically equal. If the string returned by the API is semantically equal to the config value then the framework will ignore the API value and use the config value in the final state.