Skip to content

[Swift4] 204 No Content returns error #7850

@nfortenberry

Description

@nfortenberry
Description

Swift 4 code-gen issue:
If a request returns a status code of 204 with no content, the completion handler will return an error and nil response. Since a 204 with no content is expected, no error should be thrown.

Swagger-codegen version

Swagger version 2.3.1

Steps to reproduce

In swagger, create a request that returns a 204 and no content.

Suggest a fix/enhancement

An error should not be thrown.

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