Multiple fields with anyOf and self ref causes Maximum call stack size exceeded #724
Open
2 tasks done
Labels
bug
Confirmed bug
Prerequisites
Fastify version
4.28.0 (latest)
Plugin version
5.16.1 (latest)
Node.js version
20.11.0 (LTS)
Operating system
macOS Sonoma 14.5
Description
When defining a schema with at least two anyOf fields or oneOf fields with self ref like so :
I'm getting this following error :
(output truncated for readability)
Fastify fails to start when using this schema in routes
Is this kind of schema possible ? in my case, anyOf / oneOf + self reference & null are required.
The text was updated successfully, but these errors were encountered: