Skip to content

[pigeon] Throw validation errors for enums in collections #125230

@stuartmorgan-g

Description

@stuartmorgan-g

List<SomeEnum>, and presumably Map<Object, SomeEnum> and Map<SomeEnum, Object>, generates incorrect code (#87307) that throws at runtime. We should validate the input and give an error when trying to use that, telling people to use a wrapper.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work listp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions