8000 AnyOf doesn't code generate correctly. · Issue #69 · gibahjoe/openapi-generator-dart · GitHub
[go: up one dir, main page]

Skip to content

AnyOf doesn't code generate correctly. #69

@domesticmouse

Description

@domesticmouse

I have a OpenAPI spec that includes the following component that confuses the openapi_generator to no end:

"ValidationError": {
    "title": "ValidationError",
    "required": [
        "loc",
        "msg",
        "type"
    ],
    "type": "object",
    "properties": {
        "loc": {
            "title": "Location",
            "type": "array",
            "items": {
                "anyOf": [
                    {
                        "type": "string"
                    },
                    {
                        "type": "integer"
                    }
                ]
            }
        },
        "msg": {
            "title": "Message",
            "type": "string"
        },
        "type": {
            "title": "Error Type",
            "type": "string"
        }
    }
}

This winds up with a AnyOfstringinteger which isn't generated.

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

      0