Open its-dibo opened 11 months ago
What happens if you do additionalProperties: false
What happens if you do
additionalProperties: false
this works, please add this note to the docs. also, I think it may be better to allow additional properties only if it set explicitly to trye
Prerequisites
Fastify version
4.24.0
Plugin version
2.2.2
Node.js version
18.x
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
22
Description
following your example:
now
req.body
has the following typeremove the extra prop, and you may add an option to allow arbitrary props
Steps to Reproduce
.
Expected Behavior
No response