Parent bounty: #743
Bug
The Prisma User model requires fullName, but the registration schema only accepts email, password, and role. registerUser() also omits fullName from the returned user payload. When the auth flow is wired to Prisma, registration payloads accepted by the API will be missing a required user field.
Expected
- Registration payload validation requires a non-empty
fullName.
registerUser() carries the validated fullName into the returned user payload.
- Tests cover rejection of missing
fullName and preservation of a valid name.
Scope
Keep the fix limited to registration validation/service behavior and focused API tests.
Parent bounty: #743
Bug
The Prisma
Usermodel requiresfullName, but the registration schema only acceptsemail,password, androle.registerUser()also omitsfullNamefrom the returned user payload. When the auth flow is wired to Prisma, registration payloads accepted by the API will be missing a required user field.Expected
fullName.registerUser()carries the validatedfullNameinto the returned user payload.fullNameand preservation of a valid name.Scope
Keep the fix limited to registration validation/service behavior and focused API tests.