Skip to content

[bug][python][model] Should not import self #7541

@wy-z

Description

@wy-z
Description

image

Swagger-codegen version

2.3.1

Swagger declaration file content or url
"PlacementNode": {
    "type": "object",
    "title": "PlacementNode",
    "properties": {
        "create": {
            "type": "string",
            "format": "date-time"
        },
        "id": {
            "type": "integer",
            "format": "int64"
        },
        "name": {
            "type": "string"
        },
        "parent": {
            "$ref": "#/definitions/PlacementNode"
        },
        "type": {
            "type": "string"
        },
        "update": {
            "type": "string",
            "format": "date-time"
        }
    }
}
Command line used for generation

generate -l python

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