diff --git a/internal/command/jsonchecks/checks.go b/internal/command/jsonchecks/checks.go index 6c555618b9..2536341261 100644 --- a/internal/command/jsonchecks/checks.go +++ b/internal/command/jsonchecks/checks.go @@ -73,8 +73,6 @@ func MarshalCheckStates(results *states.CheckResults) []byte { // object in the configuration even if Terraform Core encountered an error // before being able to determine the dynamic instances of the checkable object. type checkResultStatic struct { - ExperimentalNote experimentalNote `json:"//"` - // Address is the address of the checkable object this result relates to. Address staticObjectAddr `json:"address"` @@ -119,9 +117,3 @@ type checkProblem struct { // intentionally an object to allow us to add other data over time, such // as the source location where the failing condition was defined. } - -type experimentalNote struct{} - -func (n experimentalNote) MarshalJSON() ([]byte, error) { - return []byte(`"EXPERIMENTAL: see docs for details"`), nil -} diff --git a/internal/command/jsonchecks/checks_test.go b/internal/command/jsonchecks/checks_test.go index f258a5af21..cb23173248 100644 --- a/internal/command/jsonchecks/checks_test.go +++ b/internal/command/jsonchecks/checks_test.go @@ -110,7 +110,6 @@ func TestMarshalCheckStates(t *testing.T) { }, []any{ map[string]any{ - "//": "EXPERIMENTAL: see docs for details", "address": map[string]any{ "kind": "check", "to_display": "check.a", @@ -132,7 +131,6 @@ func TestMarshalCheckStates(t *testing.T) { "status": "fail", }, map[string]any{ - "//": "EXPERIMENTAL: see docs for details", "address": map[string]any{ "kind": "output_value", "module": "module.child", @@ -156,7 +154,6 @@ func TestMarshalCheckStates(t *testing.T) { "status": "fail", }, map[string]any{ - "//": "EXPERIMENTAL: see docs for details", "address": map[string]any{ "kind": "resource", "mode": "managed", @@ -182,7 +179,6 @@ func TestMarshalCheckStates(t *testing.T) { "status": "fail", }, map[string]any{ - "//": "EXPERIMENTAL: see docs for details", "address": map[string]any{ "kind": "output_value", "name": "a", @@ -199,7 +195,6 @@ func TestMarshalCheckStates(t *testing.T) { "status": "fail", }, map[string]any{ - "//": "EXPERIMENTAL: see docs for details", "address": map[string]any{ "kind": "resource", "mode": "managed",