From 77562d9b577b5c44e6cb27c78a0146ec9de0fc87 Mon Sep 17 00:00:00 2001 From: Kristin Laemmert Date: Mon, 22 Mar 2021 11:45:36 -0400 Subject: [PATCH] command/jsonprovider: bump format version (#28115) Support for attributes with NestedTypes was added in https://github.com/hashicorp/terraform/pull/28055, and should have included a format version bump: this is a backwards-compatible change, but consumers will need to be updated in order to properly decode attributes (with NestedTypes) going forward. --- command/jsonprovider/provider.go | 2 +- command/testdata/providers-schema/basic/output.json | 2 +- command/testdata/providers-schema/empty/output.json | 2 +- command/testdata/providers-schema/required/output.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/command/jsonprovider/provider.go b/command/jsonprovider/provider.go index c5d6734f71..e6a84b872e 100644 --- a/command/jsonprovider/provider.go +++ b/command/jsonprovider/provider.go @@ -9,7 +9,7 @@ import ( // FormatVersion represents the version of the json format and will be // incremented for any change to this format that requires changes to a // consuming parser. -const FormatVersion = "0.1" +const FormatVersion = "0.2" // providers is the top-level object returned when exporting provider schemas type providers struct { diff --git a/command/testdata/providers-schema/basic/output.json b/command/testdata/providers-schema/basic/output.json index 9841064cc5..f14786c3e3 100644 --- a/command/testdata/providers-schema/basic/output.json +++ b/command/testdata/providers-schema/basic/output.json @@ -1,5 +1,5 @@ { - "format_version": "0.1", + "format_version": "0.2", "provider_schemas": { "registry.terraform.io/hashicorp/test": { "provider": { diff --git a/command/testdata/providers-schema/empty/output.json b/command/testdata/providers-schema/empty/output.json index d457a374f9..12d30d2013 100644 --- a/command/testdata/providers-schema/empty/output.json +++ b/command/testdata/providers-schema/empty/output.json @@ -1,3 +1,3 @@ { - "format_version": "0.1" + "format_version": "0.2" } \ No newline at end of file diff --git a/command/testdata/providers-schema/required/output.json b/command/testdata/providers-schema/required/output.json index 9841064cc5..f14786c3e3 100644 --- a/command/testdata/providers-schema/required/output.json +++ b/command/testdata/providers-schema/required/output.json @@ -1,5 +1,5 @@ { - "format_version": "0.1", + "format_version": "0.2", "provider_schemas": { "registry.terraform.io/hashicorp/test": { "provider": {