UNPKG

@arizeai/phoenix-client

Version:

A client for the Phoenix API

21 lines 534 B
import z from "zod"; /** * The zod schema for JSON literal primitives * @see {@link https://zod.dev/?id=json-type|Zod Documentation} */ export const literalSchema = z.union([ z.string(), z.number(), z.boolean(), z.null(), ]); /** * The zod schema for JSON * @see {@link https://zod.dev/?id=json-type|Zod Documentation} */ export const jsonLiteralSchema = z.lazy(() => z.union([ literalSchema, z.array(jsonLiteralSchema), z.record(jsonLiteralSchema), ])); //# sourceMappingURL=jsonLiteralSchema.js.map