• Retrieves the description from a schema definition (v3, v4, or plain object), if available.

    Parameters

    • schema: Record<string, unknown> | InteropZodType<unknown, unknown>

      The schema to extract the description from.

    Returns string | undefined

    The description of the schema, or undefined if not present.