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
The text was updated successfully, but these errors were encountered:
callmeteus
changed the title
Validator crashes upon invalid field value
Validator crashes fastify application upon invalid / undefined field value
Jul 26, 2022
I have the similar issue. Is funny that this week I decided to try fastify although I did the PoC in express just because I had a bit of time in my hand and I saw you guys accept PR of company SVG for your website. I hope you guys are as reliable as you are in benchmarks.
PS : When my service goes live, I'd love to represent my company as I said before. I work at Goldman Sachs, NodeJS services are written in express and internal libraries like for auth, etc are made to work on top of express. Please do accept my PR :)
Prerequisites
Fastify version
4.3.0
Plugin version
No response
Node.js version
16.15.1
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
10
Description
When the fastify validator calls the validator function (https://github.com/fastify/fastify/blob/66fc397212531c2565a9cb86a2c0f4a2f06a8c77/lib/validation.js#L79), it checks if a return is
type
or has an error on it.The TypeBox provider actually throws an excetion (
fastify-type-provider-typebox/index.ts
Line 28 in 5901092
Steps to Reproduce
body
param)Expected Behavior
No response
The text was updated successfully, but these errors were encountered: