Skip to content

Compact field validators#115

Merged
gr-im merged 3 commits intomainfrom
comprehensive-api-for-field-validation
Jan 16, 2026
Merged

Compact field validators#115
gr-im merged 3 commits intomainfrom
comprehensive-api-for-field-validation

Conversation

@xhtmlboi
Copy link
Copy Markdown
Owner

Looking at the code in Codex, I found that validating fields with alternative names was quite laborious. So I added two cute combinators: req and opt.

@xhtmlboi xhtmlboi requested review from gr-im and xvw January 16, 2026 12:27
Copy link
Copy Markdown
Collaborator

@gr-im gr-im left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I've been thinking about that for a long time (and you can find earlier, similar implementations in xvw/kane).

Copy link
Copy Markdown
Collaborator

@xvw xvw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Thanks!
Merge when the CI is green (since you fix the e2e test!)

@gr-im gr-im merged commit d2ce139 into main Jan 16, 2026
3 of 4 checks passed
@gr-im gr-im deleted the comprehensive-api-for-field-validation branch January 16, 2026 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants