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

201 status codes should be used as a return type for operations #34

Closed
baronfel opened this issue Jun 22, 2016 · 2 comments
Closed

201 status codes should be used as a return type for operations #34

baronfel opened this issue Jun 22, 2016 · 2 comments

Comments

@baronfel
Copy link
Contributor

Description

POSTs that return a 201 Created can return a model, and the operation compiler should be updated to allow for that.

Repro steps

Please provide the steps required to reproduce the problem

Using this swagger, the ThingGetThing POST operation returns unit

Expected behavior

The operation should return Thing.GetModel

Actual behavior

Unit :(

Known workarounds

Change the response code to 200

Related information

SwaggerProvider 0.5.1

@baronfel
Copy link
Contributor Author

I'll see if I can send a PR in for this after doing a bit of research around response codes that return a successful model

@sergey-tihon
Copy link
Member

Released in 0.5.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants