Skip to content

fix(fastify): prevent error when schema members are undefined #80

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

Merged
merged 1 commit into from
Mar 30, 2023

Conversation

franher
Copy link
Contributor

@franher franher commented Mar 30, 2023

Pull Request Template

PR Checklist

  • I have run npm test locally and all tests are passing.
  • I have added/updated tests for any new behavior.
  • I have added/updated documentation for any new behavior.
  • If this is a significant change, an issue has already been created where the problem / solution was discussed: [N/A, or add link to issue here]

PR Description

With Fastify v4.15.0, the following change in managing schema validation was introduced, fastify/fastify#4620. It caused our tests for bautajs-fastify to fail.

This PR avoids the definition of undefined schema members to prevent the new Fastify behaviour and the errors it is throwing now.

@franher franher requested a review from a team as a code owner March 30, 2023 09:20
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Manifest Files

@franher franher added the bug Something isn't working label Mar 30, 2023
@franher franher merged commit e493be7 into main Mar 30, 2023
@franher franher deleted the fix-error-on-schema-validation branch March 30, 2023 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x bautajs-fastify bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants