-
-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Hi @Harish-2003 ,
Adding Pydantic schemas under app/schemas/ for all /otp/send-otp and /otp/verify-otp inputs and outputs this will enforce type validation, clean up our endpoint signatures, and generate richer OpenAPI docs.
even after adding the database we need schemas separately to those routes too, for better and clean validations and also,
Centralizing configuration in app/config.py using a Pydantic BaseSettings class so that all Twilio credentials, JWT secrets, and expiration settings are strongly typed, documented, and loaded from a single .env file.
if you are ok, i will add status_code and response_model to routes too.
Could you please assign this to me? I’ll follow the existing code style, include examples in the Pydantic schemas, and Pydantic BaseSettings.
Thanking you!
— Dontu Kowshik | Contributor ( GSSoc'25 )