Skip to content

feat(jac-scale): validate email format on register/login#5598

Open
kashmithnisakya wants to merge 5 commits intojaseci-labs:mainfrom
kashmithnisakya:jac-scale/validate-auth-email
Open

feat(jac-scale): validate email format on register/login#5598
kashmithnisakya wants to merge 5 commits intojaseci-labs:mainfrom
kashmithnisakya:jac-scale/validate-auth-email

Conversation

@kashmithnisakya
Copy link
Copy Markdown
Collaborator

Description

  • Split IdentityInput into a Literal-tagged discriminated union of EmailIdentityInput (typed as EmailStr) and UsernameIdentityInput — pydantic now rejects malformed emails with a 422 before the request reaches the handler.
  • OpenAPI schema now advertises format: email for email identities and emits a proper discriminator + oneOf block, so generated client SDKs validate client-side.
  • Added email-validator to pyproject.toml (required by pydantic's EmailStr).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants