You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With a schema that has a common object, joined with .and or .intersection, you will receive two schemas under allOf which means objects that satisfy Zod & TypeScript won't satisfy the resulting JSON schema.
Message: JSON does not match all schemas from 'allOf'. Invalid schema indexes: 0, 1.
Schema path: #/definitions/mySchema/allOf
Message: Property 'one' has not been defined and the schema does not allow additional properties.
Schema path: #/definitions/mySchema/allOf/1/properties/object/additionalProperties
Message: Property 'two' has not been defined and the schema does not allow additional properties.
Schema path: #/definitions/mySchema/allOf/0/properties/object/additionalProperties
The text was updated successfully, but these errors were encountered:
I'm not sure if this is a duplicate or a known issue, so apologies if it is!
Zod Schema
TS Type
Object
With a schema that has a common object, joined with
.and
or.intersection
, you will receive two schemas underallOf
which means objects that satisfy Zod & TypeScript won't satisfy the resulting JSON schema.JSON Schema
JSON object
Validator errors
The text was updated successfully, but these errors were encountered: