v4: Providing default value for base schema doesn't reference base schema in generated JSON Schema · Issue #4276 · colinhacks/zod · GitHub
More Web Proxy on the site http://driver.im/
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
The text was updated successfully, but these errors were encountered:
pattobrien
changed the title
v4: Giving default value to base schema doesn't use $ref to base schema
v4: Providing default value for base schema doesn't reference base schema in generated JSON Schema
Apr 24, 2025
Issue Description
Given the below schemas:
I would expect the JSON Schema to be:
Actual Result
Instead, the "foo" subschema seems to redeclare an inline schema with the id "BaseSchema", rather than pointing to "$defs/BaseSchema".
The text was updated successfully, but these errors were encountered: