Skip to content

Commit

Permalink
WIP fix(challenge): fix hint requirements invalid default value
Browse files Browse the repository at this point in the history
  • Loading branch information
pandatix committed Mar 25, 2024
1 parent a241761 commit 75f2271
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions provider/challenge/hint_subresource.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
"github.com/hashicorp/terraform-plugin-log/tflog"
)

Expand Down Expand Up @@ -48,9 +46,9 @@ func HintSubresourceAttributes() map[string]schema.Attribute {
"requirements": schema.ListAttribute{
MarkdownDescription: "Other hints required to be consumed before getting this one. Useful for cost-increasing hint strategies with more and more help.",
ElementType: types.StringType,
Default: listdefault.StaticValue(basetypes.ListValue{}),
Computed: true,
Optional: true,
// Default: listdefault.StaticValue(basetypes.ListValue{}),
},
}
}
Expand Down

0 comments on commit 75f2271

Please sign in to comment.