You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
Fastify version
5.0.0
Plugin version
No response
Node.js version
22.10
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
15.0.1
Description
With the PR added to find-my-way delvedor/find-my-way#380, Fastify can now support the QUERY method. However, testing the route using inject throws an error as the method is not in the hard coded list here.
If I add QUERY to that line then the tests succeed. I'm happy to submit a PR with this change but wanted to confirm that there wasn't anything else that I need to bear in mind.
For example there's an array of what appear to be the most common HTTP methods here.
No, that code does not affect light-my-request/lib/config-validator.js, it generates the req.query() method shortcut (that we are missing and still it is an issue)
Prerequisites
Fastify version
5.0.0
Plugin version
No response
Node.js version
22.10
Operating system
macOS
Operating system version (i.e. 20.04, 11.3, 10)
15.0.1
Description
With the PR added to find-my-way delvedor/find-my-way#380, Fastify can now support the QUERY method. However, testing the route using inject throws an error as the method is not in the hard coded list here.
light-my-request/lib/config-validator.js
Line 862 in 11f2447
If I add QUERY to that line then the tests succeed. I'm happy to submit a PR with this change but wanted to confirm that there wasn't anything else that I need to bear in mind.
For example there's an array of what appear to be the most common HTTP methods here.
light-my-request/index.js
Line 89 in 11f2447
Should I be adding 'query' to that array?
Link to code that reproduces the bug
No response
Expected Behavior
No response
The text was updated successfully, but these errors were encountered: