Skip to content

types: use @standard-schema/spec for StandardSchema types rather than inlining - #16341

Merged
vkarpov15 merged 1 commit into
masterfrom
vkarpov15/gh-16339
Jun 24, 2026
Merged

types: use @standard-schema/spec for StandardSchema types rather than inlining#16341
vkarpov15 merged 1 commit into
masterfrom
vkarpov15/gh-16339

Conversation

@vkarpov15

Copy link
Copy Markdown
Collaborator

Fix #16339

Summary

Copy of StandardSchema type defs was incomplete which lead to #16339. To avoid this issue in the future, we can install standard-schema's spec as an npm package and just re-export it.

Also fixed so the output of validate() also includes default _id and __v, which was missing.

Examples

@vkarpov15 vkarpov15 added this to the 9.7.3 milestone Jun 23, 2026
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Jun 24, 2026
@vkarpov15
vkarpov15 merged commit 97f0f36 into master Jun 24, 2026
55 checks passed
@hasezoey
hasezoey deleted the vkarpov15/gh-16339 branch June 24, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typescript Types or Types-test related issue / Pull Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include Standard Schema types property for Type Inference

2 participants