RobinTail/express-zod-api

Cannot create multiple errors response when generate Document

Closed this issue · 0 comments

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?