Skip to content

Improve the Python generator #8

Description

@mridang
  1. The API methods don't have return types.
  2. There are many redundant methods which should be remove e.g https://github.com/OpenAPITools/openapi-generator/blob/v7.12.0/modules/openapi-generator/src/main/resources/python/api.mustache#L48 https://github.com/OpenAPITools/openapi-generator/blob/v7.12.0/modules/openapi-generator/src/main/resources/python/api.mustache#L62
  3. When x-is-empty-body is specified, then the var should be None
  4. In some places, a "none_type" is used. This is not valid and we should define none_type = type(None)
  5. Methods such as *_serialize don't have any parameter types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions