From 441ec40d6aaec768807563fb8e9d6b8f1bf386e1 Mon Sep 17 00:00:00 2001 From: Alex Luong Date: Thu, 21 Sep 2023 22:13:13 +0700 Subject: [PATCH] fix: Improve connection rule schema validation --- internal/provider/connection/schema.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/provider/connection/schema.go b/internal/provider/connection/schema.go index 66e2825..37bc14c 100644 --- a/internal/provider/connection/schema.go +++ b/internal/provider/connection/schema.go @@ -145,6 +145,9 @@ func (r *connectionResource) Schema(_ context.Context, _ resource.SchemaRequest, }, }, }, + Validators: []validator.Object{ + validators.ExactlyOneChild(), + }, }, }, "source_id": schema.StringAttribute{