Commit 075e4b9
Fix API validation inconsistency: Add required validation to AssignRoleToAPIUserRequest.name
During RevokeRoleFromAPIUser implementation, discovered that AssignRoleToAPIUserRequest
was missing `required: true` validation on the name field, while RevokeRoleFromAPIUserRequest
correctly included it.
Both methods are mirror operations on API user resources and must have symmetric validation:
- Both require a valid API user resource name to function
- Neither can operate with empty/null name values
- Schema-level validation provides fail-fast behavior
This fix ensures API consistency before publication, avoiding future breaking changes.
Changes:
- Added `required: true` to AssignRoleToAPIUserRequest.name field validation
- Regenerated Go SDK with updated validation rules
Validation:
- buf lint: PASSED
- go build: PASSED
- ruff check: PASSED
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent ee74957 commit 075e4b9
2 files changed
Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
0 commit comments