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

feat(document): support schematype-level transform option #15163

Merged
merged 3 commits into from
Jan 8, 2025

Conversation

vkarpov15
Copy link
Collaborator

Fix #15084

Summary

With a little bit of work, we can support transform on a per-schematype basis, which can enable us to control how types end up being serialized to JSON. This is useful for custom schema types, as specified in #15084, also useful for controlling how buffers get serialized.

Examples

test/document.test.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Eslint fixes (when fixing the unsupported syntax)

test/document.test.js Outdated Show resolved Hide resolved
test/document.test.js Outdated Show resolved Hide resolved
test/document.test.js Outdated Show resolved Hide resolved
@vkarpov15 vkarpov15 merged commit 7cac003 into 8.10 Jan 8, 2025
49 of 81 checks passed
@hasezoey hasezoey deleted the vkarpov15/gh-15084 branch January 8, 2025 20:16
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.

2 participants