Skip to content

Conversation

@gary-ix
Copy link

@gary-ix gary-ix commented Nov 16, 2025

Add required method to validators. Convex validator objects get required & additionally get deepRequired to recursively make all fields in the object required.

This PR was done alongside get-convex/convex-helpers#848. We use zod as our source of truth and then derive convex validators from them. We try to keep everything required in in validators and only make things optional when editing table definitions during migrations.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@gary-ix gary-ix force-pushed the validator-required-method branch from fdb9f6c to 8317510 Compare November 16, 2025 19:59
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.

1 participant