Replies: 1 comment 1 reply
-
I don't like this idea anymore |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
so you could specify the structure of your http response in the signature of request handler like
Response[MyEntity | YourErrors]
.two benefits:
the document generator could find the description and generate documentation from the signature of the request handler
the developer would have the ability to customize and document the structure of errors and tweak the response object with custom status codes and other properties without needing to document it manually
Beta Was this translation helpful? Give feedback.
All reactions