-
Notifications
You must be signed in to change notification settings - Fork 68
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
Can't reference component.response in operation.response #274
Comments
My fault. I overlooked the place where I've been testing this. |
Typing is not allowing to write something as BadRequestResponseZ.ref though. |
@artsiommiksiuk thank you for that. I agree that the responses should allow a However |
I've added the type change in Release v7.3.0. As mentioned we do not plan to support zod schemas within custom components for the forseeable future |
Defining operation object doesn't allow refs in responses:
I see BadRequest registered in components.responses, but neither hardcoded, or referenced properly components allowed on RouteConfig. Not on typing level (TS error), neither in runtime (400 response simply discarded from the output).
The text was updated successfully, but these errors were encountered: