Skip to content

Commit 587c3d6

Browse files
committed
remove json serialization of cty types
1 parent 6d83d05 commit 587c3d6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

types/terraform.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import (
66

77
type Variable struct {
88
Name string `json:"name"`
9-
// Unsure how cty values json marshal
10-
Default cty.Value `json:"default"`
11-
Type cty.Type `json:"type"`
9+
// JSON marshalling of cty types and values is not safe. Until these json values
10+
// are needed, serialization of them is not supported.
11+
// If serialization is supported, a custom marshaller will be needed.
12+
Default cty.Value `json:"-"`
13+
Type cty.Type `json:"-"`
1214
Description string `json:"description"`
1315
Nullable bool `json:"nullable"`
1416
Sensitive bool `json:"sensitive"`

0 commit comments

Comments
 (0)