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

Export a Zod response schema that matches the request validation error responses #582

Open
Gabrola opened this issue Apr 15, 2024 · 2 comments · May be fixed by #601
Open

Export a Zod response schema that matches the request validation error responses #582

Gabrola opened this issue Apr 15, 2024 · 2 comments · May be fixed by #601
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Gabrola
Copy link
Member

Gabrola commented Apr 15, 2024

Related to #476

Would be a good idea to export a Zod response schema that can be added by ts-rest users to their contracts if they decide to keep the default request validation error responses.

Important to note that we have different formats, see https://github.com/ts-rest/ts-rest/blob/308b966/libs/ts-rest/express/src/lib/ts-rest-express.ts#L257-L276

@Gabrola Gabrola added enhancement New feature or request good first issue Good for newcomers labels Apr 15, 2024
@ankiiisharma
Copy link

hey @Gabrola , can you please elaborate this more? like what exactly do you want?

@lrwlf
Copy link

lrwlf commented May 9, 2024

I'm taking a look at this issue and will attempt a fix.

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

Successfully merging a pull request may close this issue.

3 participants