Goldziher / Goldziher/interface-forge

Feature: Core Constraint Helpers

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
TypeScript
Stars
102
Forks
9
PR merge metrics
No merged PRs in 30d

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.