Solid · Errors
Unknown fields
A field that is not in the schema is skipped entirely, nested object included, and never appears in the current value. The error passed to onError marks the path as unknown, and the field after it is parsed as usual. In the example the reply adds a discount object between show and night.
z.object({ show: z.string(), night: z.string() })Stream, chunk by chunk
{"show":"The Tempest",{ errors: [], value: { show: 'The Tempest', night: '' } }Runs in this page on the installed package. The input and the expected output are defined by the example.