Skip to content

Constraint: CardScheme #105

Description

@cursor

Goal

Add a CardScheme constraint to the muonsoft-validation library, following Symfony Validator logic.

Reference

  • Symfony: Symfony\Component\Validator\Constraints\CardScheme and its validator.
  • Align option signatures (supported card schemes), error messages, and null/empty value behavior with the library's established approach.

Scope

  • Constraint metadata and validator.
  • Validate card numbers against selected schemes (as in Symfony).
  • Unit tests for valid/invalid cases and edge cases.

Complexity

2 / 5 (from the constraints backlog plan).


Migrated from Linear: IGO-5
Priority: High
Estimate: 2 points

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions