Is recursive schema definition not supported?
1 Like
Hii @z0m0s ,
Yes, recursive schema definitions are partially supported in Gemini 2.5 via the responseJsonSchema field. They work only when the recursive property is not required, and the recursion is unrolled to a finite depth.
You can find more details in the official documentation here:
Structured output | Gemini API | Google AI for Developers
Thanks!