I’m currently working with a large and deeply nested JSON schema that exceeds the output limits of structured outputs. The schema is written in Joi initially and due to the complexity and size, I cannot convert it to Zod or simplify it easily.
Here are the key challenges:
- The schema is overly complex, with nested objects, arrays, and even recursive structures.
- Additionally the schema contains a lot of unsupported features such as
oneOf
and its not easily possible to clean this up - Due to the structured output size limits, I need a way to validate and work with the schema without running into payload constraints.
- My ultimate goal is to provide the entire schema in a manageable way, either programmatically or by breaking it down for specific use cases.
What is the suggested approach here - does anyone had a way to solve a similar challenge?