Skip to content

Consider Surfacing Null Map Values In Query JSON #209

@bflad

Description

@bflad

Terraform CLI and Provider Versions

Terraform v1.4.4
on darwin_arm64

  • provider registry.terraform.io/hashicorp/external v2.3.1

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:

"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.

How much impact is this issue causing?

Medium

Additional Information

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions