-
Notifications
You must be signed in to change notification settings - Fork 100
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
Support default status codes #105
Comments
👍 |
@0candy The goal of this task is to add support for the new feature landed by strongloop/strong-remoting#218: In short, method's
When set, the values override the default success status code (200) and the default error status code (500). The current implementation in loopback-swagger uses hard-coded 200, see https://github.com/strongloop/loopback-swagger/blob/9a30a143a47445f321c1d349c5b808517e248686/lib/specgen/route-helper.js#L126-L127
There is no default error status described, I think we should add one if the list of know error does not cover it. See https://github.com/strongloop/loopback-swagger/blob/9a30a143a47445f321c1d349c5b808517e248686/lib/specgen/route-helper.js#L136-L147:
|
The generated swagger spec should include status codes sourced from the
sharedMethod.http.status
/sharedMethod.http.errorStatus
, see strongloop/strong-remoting#218.Although I'm not sure how the mapping should look exactly...
The text was updated successfully, but these errors were encountered: