hashicorp / hashicorp/terraform-exec

Make UseJSONNumber the default

Open
#429 0 comments 0 reactions 0 assignees View on GitHub
breaking change
Dominant language
Go
Stars
786
Forks
129
PR merge metrics
No merged PRs in 30d

Description

- Remove the `UseJSONNumber` `ShowOption` added in https://github.com/hashicorp/terraform-exec/pull/427
- Call `UseJSONNumber()` method wherever a `terraform-json` `State` or `Plan` struct is used within terraform-exec to force use of `json.Number` for ints

This is a breaking change, as it switches the returned `terraform-json` types from `float64` to `json.Number` for number representation, so any tfexec consumer that goes deep enough into the plan or state to read a number value will have a compile error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.