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
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 text was updated successfully, but these errors were encountered:
JonathanMonroeU
changed the title
Error using stringify on schema with uri-encoding definition property containing anyOf, allOf or oneOf
Error using stringify on schema with uri-encoded definition property containing anyOf, allOf or oneOf
Sep 24, 2024
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
The text was updated successfully, but these errors were encountered: