Skip to content

Feature: Core Constraint Helpers #65

@Goldziher

Description

@Goldziher

Focused Scope

Add small sync constraint helpers for non-Zod factories if there is still demand after Zod and JSON Schema coverage.

Proposed v1

  • unique
  • min
  • max
  • between
  • pattern
  • custom
  • Factory-local uniqueness only.
  • A small ConstraintError with field, constraint, and attempts where applicable.

Out of Scope

  • Joi/Yup integrations.
  • Redis/database-backed uniqueness.
  • Async validators.
  • Retry strategy DSLs.
  • Conditional validation frameworks.

This should not duplicate ZodFactory or JsonSchemaFactory; it should only cover lightweight core factory constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions