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 above PR addresses an issue where descriptions would not carry over to schemas created using the chaining helper methods, like .optional().
// Before the above changesz.string().describe("a description").description// "a description"z.string().describe("a description").optional().description// undefined// Afterz.string().describe("a description").description// "a description"z.string().describe("a description").optional().description// "a description"
The changes to fix this issue were also applied to .array(), which results in some unexpected behavior.
// With this bug,z.string().describe("a description").array()// is equivalent to:z.string().describe("a description").array().describe("a description")// but this works as expectedz.array(z.string().describe("a description"))
The fix was super simple, I'll open a PR shortly!
The text was updated successfully, but these errors were encountered:
Related to changes made in #1756.
The above PR addresses an issue where descriptions would not carry over to schemas created using the chaining helper methods, like
.optional()
.The changes to fix this issue were also applied to
.array()
, which results in some unexpected behavior.The fix was super simple, I'll open a PR shortly!
The text was updated successfully, but these errors were encountered: