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: reply.getSerializationFunction can return undefined #5384

Merged

Conversation

remidewitte
Copy link
Contributor

@remidewitte remidewitte commented Apr 3, 2024

When the schema have not yet been compiled with reply.compileSerializationSchema, reply.getSerializationFunction can return undefined.

See :

serialize = this[kRouteContext][kReplyCacheSerializeFns]?.get(schemaOrStatus)

Checklist

@remidewitte remidewitte changed the title reply.getSerializationFunction can return undefined types: reply.getSerializationFunction can return undefined Apr 3, 2024
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 20e3e35 into fastify:main Apr 29, 2024
39 checks passed
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.

None yet

2 participants