Skip to content
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

Section 5.2.5 changes #7

Closed
webron opened this issue Mar 15, 2014 · 1 comment
Closed

Section 5.2.5 changes #7

webron opened this issue Mar 15, 2014 · 1 comment

Comments

@webron
Copy link
Member

webron commented Mar 15, 2014

Issue by quasipedia from Sunday Mar 02, 2014 at 00:44 GMT
Originally opened as https://github.com/wordnik/swagger-docs/issues/5


This has been extensively discussed here. But to make a quick summary, my proposal is:

  1. deprecate type from the main body of the object.
  2. rename responseMessages to responses.
  3. have in each response code (the HTTP status, inclusive the ones in the 2xx family - if any), message (an informational message that the client can store and reuse for its GUI but that will not be transmitted at each response) and model (omitting this will be equivalent to "model": "void", i.e. a response without body).

I highlighted the reasons why I feel this is a better solution in the linked issue.

@webron
Copy link
Member Author

webron commented Sep 19, 2014

Implemented in Swagger 2.0.

@webron webron closed this as completed Sep 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant