You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm having a problem with the @transactional decorator. When I add it to a controller method, the corresponding post on the swagger documentation loses its corresponding openapi.ApiResponse. I've looked at the compiled JS code and both decorators are being added correctly, so I'm not entirely sure where the problem could be coming from, but I'm not well versed in NestJS decorators. Do you have any idea what might be causing it?
Has the correct decorators from what I can see. What could the cause of the problem?
Edit:
On further inspection I found this issue on the swagger repo. I think this might be what's wrong with @transactional as it also overwrites the property.
The text was updated successfully, but these errors were encountered:
Hi, I'm having a problem with the @transactional decorator. When I add it to a controller method, the corresponding post on the swagger documentation loses its corresponding openapi.ApiResponse. I've looked at the compiled JS code and both decorators are being added correctly, so I'm not entirely sure where the problem could be coming from, but I'm not well versed in NestJS decorators. Do you have any idea what might be causing it?
For example:
These two endpoints:
The first two have the post schema on swagger, while the last doesn't. However, the compiled JS:
Has the correct decorators from what I can see. What could the cause of the problem?
Edit:
On further inspection I found this issue on the swagger repo. I think this might be what's wrong with @transactional as it also overwrites the property.
The text was updated successfully, but these errors were encountered: