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

single source of validation logic #2599

Open
3 tasks done
chronark opened this issue Oct 28, 2024 · 1 comment
Open
3 tasks done

single source of validation logic #2599

chronark opened this issue Oct 28, 2024 · 1 comment
Labels
Core Team Feature New feature or request

Comments

@chronark
Copy link
Collaborator

Preliminary Checks

Is your feature request related to a problem? Please describe.

It would be nice if we had an internal package with all validation logic. Right now user input validation is fragmented, defined in the UI, in tRPC and in the API as well.

Describe the solution

A new internal package @unkey/validation, that exports various validation constructs.

ie:

export const resourceName = z.string().min(3).max(256).regex(...)

Describe alternatives you have considered (if any)

none

Additional context

No response

@chronark chronark added Feature New feature or request Needs Approval Needs approval from Unkey labels Oct 28, 2024
Copy link

linear bot commented Oct 28, 2024

@perkinsjr perkinsjr added Core Team and removed Needs Approval Needs approval from Unkey labels Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants