Skip to content

Constraint: Week (ISO week string) #108

Description

@cursor

Goal

Add a Week constraint — validate a string as a year and ISO week (like Assert\Week in Symfony), with week/year options if needed.

Reference

  • Symfony: Symfony\Component\Validator\Constraints\Week.

Constraints

  • No new dependencies — parse via time (ISO week); align behavior with Symfony documentation.

Scope

  • Format parsing, week boundaries, tests for valid/invalid values.

Complexity

2 / 5.


Migrated from Linear: IGO-36
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