Skip to content

Extend AcceptOnlyFromAmong with bool ignoreCase = false #2254

Open

Description

Activity

  1. jonsequitur commented on Jul 31, 2023

    @jonsequitur
    Contributor

    After thinking about this a bit more, I'm not sure the solution proposed in this issue title is the best approach. The core of the problem is that the validation and the parsing have different casing rules. If the API could ensure they're aligned, it would be less error-prone without having to add complexity. On the other hand, making this configurable could open the door to the opposite inconsistency, e.g. someone has case-sensitive parsing but case-insensitive validation.

    We're redesigning the validation APIs and we should consider this in the redesign.

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

    Area-Parser and Binderneeds discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions