How to rewrite model description in @success comment? #2951
baiyuxiong
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a common model "Response", defined as follow :
It is used in a lot of controllers. and "Code" field in "Response" has it's own description in each controller.
eg:
in controller A,code 100 means error aaa, code 200 means error bbb.
in controller B,code 300 means error xxx, code 400 means error yyy.
error xxx and error yyy is not needed to show up in controller A, I need to rewrite the "Code" description in each controller.
I searched the official document, it seams that field description cannot be rewrote in @success comment.
Is there any good idea for this situation? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions