Skip to content

fix: validate email format on member creation endpoint#154

Open
marikoRw wants to merge 1 commit into
Open-Source-Kigali:devfrom
marikoRw:validate-member-email-15
Open

fix: validate email format on member creation endpoint#154
marikoRw wants to merge 1 commit into
Open-Source-Kigali:devfrom
marikoRw:validate-member-email-15

Conversation

@marikoRw
Copy link
Copy Markdown

What does this PR do?

I successfully added a valid email checker to the add member creation endpoint

Related issue

Closes #15

How did you test it?

i used the swagger UI and sent a API request test with an invalid email field and got a 400 error "invalid email" and then corrected the email and got the 201 response with "member created"

Checklist

  • My code builds (npm run build)
  • I added or updated tests and npm test passes
  • I updated docs/openapi.yaml if I changed any routes
  • I added a Prisma migration if I changed schema.prisma
  • I updated docs or .env.example if needed

@rodriguecyber rodriguecyber self-requested a review June 2, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Email format not validated on POST /api/members

1 participant