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
Upon switching from terraform-plugin-sdk to terraform-plugin-framework, the data available from the query attribute map is now more robust. While the prior SDK completely filtered map keys with null values, the new one properly keeps those map keys with their associated null values. This means the JSON could contain:
"null_map_key": null
However, changing this should be considered a breaking change as programs may not be expecting null JSON values.
Proposal
In the next major version, and if the query is not converted into a generic string type (#17), consider removing any filtering of map keys for null map values and allow those null values to pass through to the query JSON.
Terraform CLI and Provider Versions
Terraform v1.4.4
on darwin_arm64
Use Cases or Problem Statement
Upon switching from terraform-plugin-sdk to terraform-plugin-framework, the data available from the
query
attribute map is now more robust. While the prior SDK completely filtered map keys with null values, the new one properly keeps those map keys with their associated null values. This means the JSON could contain:However, changing this should be considered a breaking change as programs may not be expecting null JSON values.
Proposal
In the next major version, and if the
query
is not converted into a generic string type (#17), consider removing any filtering of map keys for null map values and allow those null values to pass through to the query JSON.How much impact is this issue causing?
Medium
Additional Information
null
value is converted to""
instead of simply not present #208Code of Conduct
The text was updated successfully, but these errors were encountered: