Renders a SchemaLike as a plain JSON Schema object.
Zod v3 and v4 schemas are converted with their respective serializers. A
genai Schema is translated out of the genai/OpenAPI dialect (uppercase
type names, stringified bounds, nullable) so that every schema form
produces the same JSON Schema shape for a consumer to read.
Renders a SchemaLike as a plain JSON Schema object.
Zod v3 and v4 schemas are converted with their respective serializers. A genai
Schemais translated out of the genai/OpenAPI dialect (uppercase type names, stringified bounds,nullable) so that every schema form produces the same JSON Schema shape for a consumer to read.