File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ type Schema struct {
6161 DeprecationMessage string
6262}
6363
64+ func (s Schema ) EmptyValue (ctx context.Context ) tftypes.Value {
65+ return fwschema .EmptySchemaValue (ctx , s )
66+ }
67+
6468// ApplyTerraform5AttributePathStep applies the given AttributePathStep to the
6569// schema.
6670func (s Schema ) ApplyTerraform5AttributePathStep (step tftypes.AttributePathStep ) (any , error ) {
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ type Schema interface {
7474 // the given Terraform path or return an error.
7575 TypeAtTerraformPath (context.Context , * tftypes.AttributePath ) (attr.Type , error )
7676
77+ // EmptyValue should return an empty tftypes.Value of the schema's TerraformType
7778 EmptyValue (context.Context ) tftypes.Value
7879}
7980
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ type Schema struct {
3737 Version int64
3838}
3939
40+ func (s Schema ) EmptyValue (ctx context.Context ) tftypes.Value {
41+ return fwschema .EmptySchemaValue (ctx , s )
42+ }
43+
4044// ApplyTerraform5AttributePathStep applies the given AttributePathStep to the
4145// schema.
4246func (s Schema ) ApplyTerraform5AttributePathStep (step tftypes.AttributePathStep ) (any , error ) {
You can’t perform that action at this time.
0 commit comments