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
The datasetRuleSchema depth was set to 2, which caused a "Struct defines
fields not found in object: rules" error when using 3+ levels of nested
dataset rules in actions.
The Go Rule struct always has a Rules []Rule field, but at depth=0 the
schema didn't include the "rules" attribute. When Terraform Framework
tried to convert the struct to the schema's object type, it failed due
to this mismatch.
Increasing the depth from 2 to 10 allows up to 10 levels of nested rules,
which should be sufficient for any practical use case.
Copy file name to clipboardExpand all lines: docs/resources/action.md
+168Lines changed: 168 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -778,8 +778,176 @@ Optional:
778
778
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
779
779
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
780
780
-`property` (String) The property identifier of the rule
781
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules))
781
782
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules`
786
+
787
+
Optional:
788
+
789
+
-`blueprint` (String) The blueprint identifier of the rule
790
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
791
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
792
+
-`property` (String) The property identifier of the rule
793
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules))
794
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules`
798
+
799
+
Optional:
800
+
801
+
-`blueprint` (String) The blueprint identifier of the rule
802
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
803
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
804
+
-`property` (String) The property identifier of the rule
805
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules))
806
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules`
810
+
811
+
Optional:
812
+
813
+
-`blueprint` (String) The blueprint identifier of the rule
814
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
815
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
816
+
-`property` (String) The property identifier of the rule
817
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules))
818
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules.rules`
822
+
823
+
Optional:
824
+
825
+
-`blueprint` (String) The blueprint identifier of the rule
826
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
827
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
828
+
-`property` (String) The property identifier of the rule
829
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules))
830
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules.rules.rules`
834
+
835
+
Optional:
836
+
837
+
-`blueprint` (String) The blueprint identifier of the rule
838
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
839
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
840
+
-`property` (String) The property identifier of the rule
841
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--rules))
842
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules.rules.rules.rules`
846
+
847
+
Optional:
848
+
849
+
-`blueprint` (String) The blueprint identifier of the rule
850
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
851
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
852
+
-`property` (String) The property identifier of the rule
853
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--rules--rules))
854
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules.rules.rules.rules.rules`
858
+
859
+
Optional:
860
+
861
+
-`blueprint` (String) The blueprint identifier of the rule
862
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
863
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
864
+
-`property` (String) The property identifier of the rule
865
+
-`rules` (Attributes List) Nested rules for a group rule. Used with combinator for logical grouping. (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--rules--rules--rules))
866
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules.rules.rules.rules.rules.rules`
870
+
871
+
Optional:
872
+
873
+
-`blueprint` (String) The blueprint identifier of the rule
874
+
-`combinator` (String) The combinator for a group rule (and/or). Used with nested rules instead of operator.
875
+
-`operator` (String) The operator of the rule. Required for leaf rules, should not be set for group rules.
876
+
-`property` (String) The property identifier of the rule
877
+
-`value` (Object) The value of the rule (see [below for nested schema](#nestedatt--self_service_trigger--user_properties--string_props--dataset--rules--rules--rules--rules--rules--rules--rules--rules--rules--rules--rules--value))
### Nested Schema for `self_service_trigger.user_properties.string_props.dataset.rules.rules.rules.rules.rules.rules.rules.rules.rules.rules.rules.value`
0 commit comments