-
Notifications
You must be signed in to change notification settings - Fork 512
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
Cannot use @Response decorator with variables #1565
Comments
Hello there sheppard30 👋 Thank you for opening your very first issue in this project. We will try to get back to you as soon as we can.👀 |
Seems like an issue with your tsc config. Make sure the types are included, not ignored. |
Hello. Thank you for your reply. This is my tsconfig.json and tsoa.json. There are two issues:
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days |
I'm submitting a ...
I confirm that I
Expected Behavior
I shoud be able to import my type and dictionary of errors, use them in the @response decorator to avoid duplication of code. I think it might be an issue with aliases. Relative path works better but still not ideal (eg I do not have my error messages from
errors
in swagger).Current Behavior
When I am trying to build routes I get an error
Possible Solution
No idea
Steps to Reproduce
Context (Environment)
Version of the library: 6.0.1
Version of NodeJS: 20.10
The text was updated successfully, but these errors were encountered: