Skip to content

JSON and MsgPack don't handle OptionalAttributes correctly #97

@paddycarver

Description

@paddycarver

terraform-plugin-go version

v0.3.1

Expected Behavior

Complex types that have object elements or attributes that contain optional attributes (a map of objects with optional attributes, an object with an object attribute that has optional attributes, etc.) should be surfaced as a value without optional attributes when surfaced from msgpack or JSON.

Actual Behavior

The values retain their type constraints as types, instead of the actual type. Meaning they'd still have optional attributes as part of their type, instead of their concrete type.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions