[X] I have searched existing issues to ensure the bug has not already been reported
Fastify version
Latest version
Plugin version
6.0.0
Node.js version
20.1.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
22.04.4 LTS
Description
While using stringify I started getting "can't resolve reference" error.
It seems that when you have a definition property using a uri-encoding like '%3C' or '%22', and this property has fields contaning oneOf, allOf or anyOf, it returns the error.
The following code can be run on the fast-json-stringify test suite to confirm the error.
Prerequisites
Fastify version
Latest version
Plugin version
6.0.0
Node.js version
20.1.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
22.04.4 LTS
Description
While using stringify I started getting "can't resolve reference" error. It seems that when you have a definition property using a uri-encoding like '%3C' or '%22', and this property has fields contaning oneOf, allOf or anyOf, it returns the error.
The following code can be run on the fast-json-stringify test suite to confirm the error.
The error exhibited is
Removing the '%' on the definition property OR removing oneOf like in the following code returns no error.
Link to code that reproduces the bug
No response
Expected Behavior
No response