Skip to content

Commit

Permalink
fix: Include backend in dependent bodies to avoid false negatives
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Sep 4, 2023
1 parent 5a6413c commit f1de9cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schema/schema_merge_remote_state_ds.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@ func (sm *SchemaMerger) dependentBodyForRemoteStateDataSource(providerAddr lang.

dsSchema := &schema.BodySchema{
Attributes: map[string]*schema.AttributeSchema{
"backend": {
Constraint: schema.LiteralValue{
Value: cty.StringVal(backendType),
},
IsRequired: true,
SemanticTokenModifiers: lang.SemanticTokenModifiers{lang.TokenModifierDependent},
},
"config": {
Constraint: objConstraint,
IsOptional: true,
Expand Down

0 comments on commit f1de9cc

Please sign in to comment.