Skip to content

Commit 428efef

Browse files
committed
add client capabilities to nested attribute validation
1 parent 4b722e0 commit 428efef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/fwserver/attribute_validation.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,6 +1041,7 @@ func AttributeValidateNestedAttributes(ctx context.Context, a fwschema.Attribute
10411041
AttributePath: req.AttributePath.AtListIndex(idx),
10421042
AttributePathExpression: req.AttributePathExpression.AtListIndex(idx),
10431043
Config: req.Config,
1044+
ClientCapabilities: req.ClientCapabilities,
10441045
}
10451046
nestedAttributeObjectResp := &ValidateAttributeResponse{}
10461047

@@ -1075,6 +1076,7 @@ func AttributeValidateNestedAttributes(ctx context.Context, a fwschema.Attribute
10751076
AttributePath: req.AttributePath.AtSetValue(value),
10761077
AttributePathExpression: req.AttributePathExpression.AtSetValue(value),
10771078
Config: req.Config,
1079+
ClientCapabilities: req.ClientCapabilities,
10781080
}
10791081
nestedAttributeObjectResp := &ValidateAttributeResponse{}
10801082

@@ -1109,6 +1111,7 @@ func AttributeValidateNestedAttributes(ctx context.Context, a fwschema.Attribute
11091111
AttributePath: req.AttributePath.AtMapKey(key),
11101112
AttributePathExpression: req.AttributePathExpression.AtMapKey(key),
11111113
Config: req.Config,
1114+
ClientCapabilities: req.ClientCapabilities,
11121115
}
11131116
nestedAttributeObjectResp := &ValidateAttributeResponse{}
11141117

@@ -1146,6 +1149,7 @@ func AttributeValidateNestedAttributes(ctx context.Context, a fwschema.Attribute
11461149
AttributePath: req.AttributePath,
11471150
AttributePathExpression: req.AttributePathExpression,
11481151
Config: req.Config,
1152+
ClientCapabilities: req.ClientCapabilities,
11491153
}
11501154
nestedAttributeObjectResp := &ValidateAttributeResponse{}
11511155

@@ -1232,6 +1236,7 @@ func NestedAttributeObjectValidate(ctx context.Context, o fwschema.NestedAttribu
12321236
AttributePath: req.AttributePath.AtName(nestedName),
12331237
AttributePathExpression: req.AttributePathExpression.AtName(nestedName),
12341238
Config: req.Config,
1239+
ClientCapabilities: req.ClientCapabilities,
12351240
}
12361241
nestedAttrResp := &ValidateAttributeResponse{}
12371242

0 commit comments

Comments
 (0)