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

[zod-openapi] Swagger reports Unknown Type: object when using the extendApi command #191

Open
kitips49 opened this issue Mar 22, 2024 · 7 comments

Comments

@kitips49
Copy link

How can I fix the problem? I didn't have any issues before.
image
image
image
image
image

@kitips49
Copy link
Author

image
I think you should fix it like this. I've tried fixing it and it seems to work.

@kerolloz
Copy link

Try to use openAPI version 3.1.0

@kitips49
Copy link
Author

kitips49 commented Mar 28, 2024

Try to use openAPI version 3.1.0
I wrote code like this, then called function extendApi again, and it worked on NestJS
https://playcode.io/1816795

@ADobrianskiy
Copy link

ADobrianskiy commented Mar 29, 2024

Try to use openAPI version 3.1.0

After setting 3.1.0 version following nestjs/swagger#2361 (comment) comment in my Nestjs application all extendApi metadata is simply cut off. I assume that without #191 (comment) adaptation it will not work =(

Any ideas when approximately it will be fixed?

@adambrgmn
Copy link
Contributor

I gave more context in issue #192 about what has happened.
And today I also submitted a pr that might fix your issues; #206

@armtuk
Copy link

armtuk commented Jul 2, 2024

Having the same issue here too.

@adambrgmn
Copy link
Contributor

adambrgmn commented Jul 9, 2024

Having the same issue here too.

@armtuk In the latest version as well? My or mentioned above is merged and released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants