You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch condition and rule from ListNestedAttribute to ListNestedBlock
Fixes "Unsupported block type" error by using schema.ListNestedBlock
for rule and condition, which supports the natural HCL block syntax.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MarkdownDescription: "Ordered list of routing rules. Priority is determined by position (first = highest priority). A rule with no conditions acts as a catch-all.",
59
-
Required: true,
60
-
NestedObject: schema.NestedAttributeObject{
61
+
NestedObject: schema.NestedBlockObject{
61
62
Attributes: map[string]schema.Attribute{
62
63
"target_space_mrn": schema.StringAttribute{
63
64
MarkdownDescription: "The MRN of the space where matching assets will be routed.",
64
65
Required: true,
65
66
},
66
-
"condition": schema.ListNestedAttribute{
67
-
MarkdownDescription: "Conditions that must all match for this rule to apply (AND logic). If empty, the rule matches all assets (catch-all).",
0 commit comments