Skip to content

Commit ccaf1fd

Browse files
fix: remove invalid MaxItems constraint from Okta ML policy
Remove MaxItems: 1 from rule field in both resource and data source. MaxItems cannot be used on computed-only fields in data sources and was causing provider validation errors. Aligns with AWS ML policy implementation pattern.
1 parent faa7518 commit ccaf1fd

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

sysdig/data_source_sysdig_secure_okta_ml_policy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ func createOktaMLPolicyDataSourceSchema() map[string]*schema.Schema {
4545
"rule": {
4646
Type: schema.TypeList,
4747
Computed: true,
48-
MaxItems: 1,
4948
Elem: &schema.Resource{
5049
Schema: map[string]*schema.Schema{
5150
"id": ReadOnlyIntSchema(),

sysdig/resource_sysdig_secure_okta_ml_policy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func resourceSysdigSecureOktaMLPolicy() *schema.Resource {
5454
"rule": {
5555
Type: schema.TypeList,
5656
Required: true,
57-
MaxItems: 1,
5857
Elem: &schema.Resource{
5958
Schema: map[string]*schema.Schema{
6059
"id": ReadOnlyIntSchema(),

0 commit comments

Comments
 (0)