Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add provider input validation & type safety #2430

Open
wants to merge 29 commits into
base: main
Choose a base branch
from

Conversation

theedigerati
Copy link

@theedigerati theedigerati commented Nov 11, 2024

Closes #1327

📑 Description

Validation for provider inputs using zod schema on the frontend and pydantic on the backend

  • zod schema for all provider inputs
  • custom validation logic for urls(with/without protocol), port, tld, file
  • built-in & custom pydantic fields types for inputs on all providers with such fields
  • type safety for provider form component
  • e2e tests

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

https://www.loom.com/share/b08c408f192b4a29aef1d8f83c7c4638?sid=f21b2bb5-4390-4e3b-bd40-e966148597ed

Copy link

vercel bot commented Nov 11, 2024

@theedigerati is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Nov 11, 2024

CLA assistant check
All committers have signed the CLA.

@theedigerati theedigerati marked this pull request as ready for review November 11, 2024 05:38
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. Enhancement New feature or request labels Nov 11, 2024
@dosubot dosubot bot added the Provider Providers related issues label Nov 11, 2024
@Matvey-Kuk Matvey-Kuk self-requested a review November 11, 2024 08:13
@theedigerati
Copy link
Author

Hello @Matvey-Kuk, I'd really appreciate your review and feedback on this contribution.
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Provider Providers related issues size:XXL This PR changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🔨 Enhancement]: better input validation for providers / add types for inputs
2 participants