Skip to content

[Python] Incorrect return types if multiple responses are defined  #7426

@ksvirkou-hubspot

Description

@ksvirkou-hubspot

Description

If you define multiple responses, the codegen will only support the first one (typically 200).

openapi-generator version

5.0.0-SNAPSHOT

OpenAPI declaration file content or url

Снимок экрана 2020-09-17 в 16 24 12

Correctly generate the return-object based on the HTTP Status Code in the Response.

Similar Issue for PHP

link

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions