GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • ADK for TypeScript: API Reference

This view

  • Original page
  • New address

GeezerVison is showing adk.dev — toJsonSchema | ADK for TypeScript: API Reference - v2.5.0

  • toJsonSchema

Function toJsonSchema

  • toJsonSchema(schema: SchemaLike): Record<string, unknown>

    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.

    Parameters

    • schema: SchemaLike

    Returns Record<string, unknown>

    • Defined in core/src/utils/schema.ts:118
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.