Skip to content

Commit

Permalink
fix userInputs schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Tankilevitch committed Aug 5, 2024
1 parent 3e7cb19 commit f432207
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion port/action/refreshActionState.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,9 @@ func buildUserProperties(ctx context.Context, a *cli.Action) (*UserPropertiesMod
}
}
}

if properties.StringProps == nil && properties.NumberProps == nil && properties.ArrayProps == nil && properties.BooleanProps == nil && properties.ObjectProps == nil {
return nil, nil
}
return properties, nil
}

Expand Down
2 changes: 1 addition & 1 deletion port/action/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ func ActionSchema() map[string]schema.Attribute {
"user_properties": schema.SingleNestedAttribute{
MarkdownDescription: "User properties",
Optional: true,
Computed: true,
Attributes: map[string]schema.Attribute{
"string_props": StringPropertySchema(),
"number_props": NumberPropertySchema(),
Expand Down Expand Up @@ -1021,6 +1020,7 @@ func validateUserInputRequiredNotSetToFalse(ctx context.Context, state *ActionVa
}
}
}

}

var ResourceMarkdownDescription = `
Expand Down

0 comments on commit f432207

Please sign in to comment.