-
Notifications
You must be signed in to change notification settings - Fork 59
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
Swagger-UI fails to resolve reference when class passed as @ResponseSchema and @Body #82
Comments
I was able to fix part of the problem by moving the |
I am also getting |
Same issue, workaround I use now is to annotate every field with an appropriate annotation e.g.
|
@judos workaround works, thanks Any permanent solution planned on this? |
Same error :/ |
solution : downgrave version : https://github.com/epiphone/routing-controllers-openapi/blob/master/sample/01-basic/package.json |
There is not well documented property type but then I just ignored it and all works well, final working variant
deps
also, this lib relies on class-validator, so classes without this lib's annotation will be ignored |
@oleksandr-andrushchenko Could you please show your whole solution? For me, |
@ernestyouniverse if it helps - give me a star, thank you! |
@oleksandr-andrushchenko thank You for Your help! :) Indeed with a commonJS setup it works smoothly. Sadly for ESM it doesn't. |
Same problem. Why @ResponseSchema() does not working? I look in generated schema and see this:
But reference is exists:
|
Have a project set up using the following structure,
Here's a rough implementation of how the files are implemented,
./main.ts
./validator/auth.ts
./controllers/auth.ts
However when I try to expand the authenticateUser section of the request in swagger-ui I get the following error.
The text was updated successfully, but these errors were encountered: