Commit fb0f14a
fix: make bytebase_group.members optional and release 3.17.3 (#193)
* fix: make bytebase_group.members optional and release 3.17.3
The terraform-plugin-sdk/v2 core schema auto-injects MinItems=1 whenever
a nested block is Required with MinItems=0 (core_schema.go:211-214), so
removing the literal MinItems:1 in #191 was not enough to allow an empty
members block — Terraform core still rejects the config with
"Insufficient members blocks" before any RPC reaches the server.
Flip members to Optional so the SDK does not reinject the constraint.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* test: drop stale "no members" error expectation
Step 3 of TestAccGroup_InvalidInput asserted that a bytebase_group with
no members block produces a validation error. That is exactly the
behavior this change (and #191) removes, so the step now fails with
"expected an error but got none".
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6b94d65 commit fb0f14a
4 files changed
Lines changed: 3 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | 262 | | |
274 | 263 | | |
275 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments