Related to #5564 (closed by #5586)
While for the simple cases metadata parsing was added, they do not seem to be parsed for all of the special cases in convertBaseSchema, such as enums and literals.
// Will equal { description: "The name of the person" }
const stringMeta = z.fromJSONSchema({
type: "string",
description: "The name of the person",
}).meta();
// But all of these will be undefined
const enumMeta = z.fromJSONSchema({
type: "string",
enum: ["red", "green", "blue"],
description: "The color of the object",
}).meta();
const literalMeta = z.fromJSONSchema({
type: "string",
const: "hello",
description: "A constant string value",
}).meta();
const notMeta = z.fromJSONSchema({
description: "Placeholder item",
not: {},
}).meta();