Files
water/openspec/changes/fix-register-body-validation/specs/auth-registration/spec.md
2026-08-14 10:35:42 +08:00

12 lines
543 B
Markdown

## ADDED Requirements
### Requirement: 注册请求使用默认认证客户端
系统 SHALL 在校验注册请求前,为缺失或空白的 `clientId` 设置默认值 `32324a04c0175c8d61ac8a282553aea1`,并在补值后执行 `RegisterBody` 的全部参数约束。
#### Scenario: 注册请求未提供客户端 ID
- **WHEN** 调用方提交的注册请求中 `clientId` 缺失或为空白
- **THEN** 系统将 `clientId` 设置为 `32324a04c0175c8d61ac8a282553aea1`
- **AND** 系统在调用注册服务前校验补值后的注册请求