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

Replace decorateRequest by onRequest hook #10

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

andreffvalente
Copy link
Contributor

Resolve deprecation warning triggered by Fastify when decorating the Request with a reference type.

DeprecationWarning: You are decorating Request/Reply with a reference type. This reference is shared amongst all requests. Use onRequest hook instead. Property: oas

This replaces the fastify.decorateRequest() with the fastify.addHook('onRequest', ...).

@andreffvalente andreffvalente force-pushed the bugfix/replace-request-decorator branch 2 times, most recently from ef39bc9 to c7b6758 Compare August 5, 2024 13:20
satazor
satazor previously approved these changes Aug 5, 2024
@satazor satazor merged commit b0d6bae into master Aug 6, 2024
1 check passed
@satazor satazor deleted the bugfix/replace-request-decorator branch August 6, 2024 09:00
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