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
$ref in response results in z.void() #178
Comments
got it, feel free to send a PR ! 🙏 |
jbach
added a commit
to jbach/openapi-zod-client
that referenced
this issue
Jul 25, 2023
astahmer
pushed a commit
that referenced
this issue
Jul 25, 2023
Is this released? |
yes, was merged here #188 |
Seems to be happening to me as well on v1.16.2, my openapi JSON looks like the following ...
"responses": {
"200": {
"description": "OK",
"content": {
"*/*": {
"schema": {
"$ref": "#/components/schemas/UserInfo"
}
}
}
}
}
... is this a supported use case? |
it looks like it should be fine, feel free to send a PR to fix it 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using this operation
Generates the response as
z.void()
.This happens because this method does not consider that
responseItem
can contain a$ref
The text was updated successfully, but these errors were encountered: