Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Cannot create multiple errors response when generate Document #1331

Closed
huyhoang160593 opened this issue Nov 22, 2023 · 0 comments
Closed

Cannot create multiple errors response when generate Document #1331

huyhoang160593 opened this issue Nov 22, 2023 · 0 comments
Labels
question Further information is requested

Comments

@huyhoang160593
Copy link

So the thing it in the doc there are mention to create custom response here https://github.com/RobinTail/express-zod-api#response-customization. But you can only create 1 schema for 1 negative response, but if I want to create multiple errors like 400 for validate and 401 for authorization, there is no way to define that. How can I utilize the custom response to have multiple entries of error in the same result handler?

@RobinTail RobinTail added the question Further information is requested label Nov 22, 2023
Repository owner locked and limited conversation to collaborators Nov 22, 2023
@RobinTail RobinTail converted this issue into discussion #1332 Nov 22, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants