Skip to content

Commit

Permalink
fix: Use set instead of list for connection rules (#81)
Browse files Browse the repository at this point in the history
* fix: Use set instead of list for connection rules

* docs: Generate
  • Loading branch information
alexluong authored Jul 16, 2024
1 parent 98084c5 commit 71a133d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "hookdeck_connection" "connection_example" {
- `description` (String) Description for the connection
- `disabled_at` (String) Date the connection was disabled
- `name` (String) A unique, human-friendly name for the connection
- `rules` (Attributes List) (see [below for nested schema](#nestedatt--rules))
- `rules` (Attributes Set) (see [below for nested schema](#nestedatt--rules))

### Read-Only

Expand Down
2 changes: 1 addition & 1 deletion internal/provider/connection/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (r *connectionResource) Schema(_ context.Context, _ resource.SchemaRequest,
},
Description: "Date the connection was paused",
},
"rules": schema.ListNestedAttribute{
"rules": schema.SetNestedAttribute{
Optional: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
Expand Down

0 comments on commit 71a133d

Please sign in to comment.