Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types(middleware): make this in document middleware the hydrated doc type, not raw doc type #15246

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

vkarpov15
Copy link
Collaborator

Summary

#15242 pointed out that #14720 actually passes down the raw doc type as this for document middleware, not the hydrated doc type. This PR ensures we pass THydratedDocumentType down to SchemaValidator.

Weirdly enough, adding THydratedDocumentType to .obj and .add() breaks tests. Not sure why, but that doesn't seem to break anything here.

Examples

@vkarpov15 vkarpov15 added this to the 8.10.1 milestone Feb 10, 2025
@hasezoey hasezoey added the typescript Types or Types-test related issue / Pull Request label Feb 12, 2025
@vkarpov15 vkarpov15 merged commit 8b2b3dc into master Feb 12, 2025
6 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/gh-15242 branch February 12, 2025 19:49
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.

2 participants