Closed 8471919 closed 9 months ago
Seems not any problem in your example code and picture, but I may understand what you want.
If you want to define same status numbered error type multiply, just do it with union type.
@TypedException<X|Y|Z>(403, "description")
@samchon
as looking the first picture, 403 and 404 example value's code
and message
is same.
that's two examples are different error each other though.
If possible, can you solve this problem?
I always feel really thanks for you to make this super-convenient libarary.
Use explicit type, then no problem.
Bug Report
Summary
Write a short summary of the bug in here.
Write detailed description in here.
Code occuring the bug
when I use
@TypedException
with Type that has generic like@TypedException<ErrorResponseForm<T>>(args)
, swagger docs read only last decorator generic type. this is the example picture. (after npx nestia swagger)this is swagger.json
you have any solution of this?