Skip to content

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

Closed
flutter/packages
#3782

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.

Activity

  1. added
    packageflutter/packages repository. See also p: labels.
    p: pigeonrelated to pigeon messaging codegen tool
    P1High-priority issues at the top of the work list
    on Apr 20, 2023
  2. github-actions commented on May 5, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  3. locked as resolved and limited conversation to collaborators on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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