10000 Accept Standard Schemas in ts-rest · Issue #743 · ts-rest/ts-rest · GitHub
[go: up one dir, main page]

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

Accept Standard Schemas in ts-rest #743

Open
iGoodie opened this issue Feb 9, 2025 · 2 comments
Open

Accept Standard Schemas in ts-rest #743

iGoodie opened this issue Feb 9, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@iGoodie
Copy link
iGoodie commented Feb 9, 2025

Is your feature request related to 8000 a problem? Please describe.
No it is not a problem, rather a maintenance concern.

Describe the solution you'd like
Authors of most popular validation libraries like Zod, ArkType and Valibot came together to form a standard.
It would be amazing, if ts-rest could accept any Validation library that implements Standard Schema.
They briefly explain how to accept under: https://github.com/standard-schema/standard-schema#how-do-i-accept-standard-schemas-in-my-library

@iGoodie iGoodie added the enhancement New feature or request label Feb 9, 2025
@aidant
Copy link
aidant commented Feb 10, 2025

@oliverbutler I've been thinking similarly and would be willing to look at implementing this as a feature given the opportunity

@oliverbutler
Copy link
Collaborator

Hi @aidant

I was working may way though my backlog of issues and hadn't stumbled upon this yes.

Absolutely, 100%.

Dependency on Zod is less necessary with this promising standard.

Feel free to have a stab at this, I'm more than willing to help as much as I can.

This is likely a large change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants
0