Skip to content

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

@baronfel

Description

@baronfel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions