79454724

Date: 2025-02-20 13:51:57
Score: 1
Natty:
Report link

Update your schema as per below:

const jsonSchema = z.lazy(() =>
   z.union([z.object({ title: z.string() }), z.record(jsonSchema)])
);

For more information, you can check the docs

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Pinal Tilva