Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
13 lines
627 B
Plaintext
13 lines
627 B
Plaintext
import type * as JSONSchema from "../core/json-schema.cjs";
|
|
import { type $ZodRegistry } from "../core/registries.cjs";
|
|
import type { ZodType } from "./schemas.cjs";
|
|
type JSONSchemaVersion = "draft-2020-12" | "draft-7" | "draft-4" | "openapi-3.0";
|
|
interface FromJSONSchemaParams {
|
|
defaultTarget?: JSONSchemaVersion;
|
|
registry?: $ZodRegistry<any>;
|
|
}
|
|
/**
|
|
* Converts a JSON Schema to a Zod schema. This function should be considered semi-experimental. It's behavior is liable to change. */
|
|
export declare function fromJSONSchema(schema: JSONSchema.JSONSchema | boolean, params?: FromJSONSchemaParams): ZodType;
|
|
export {};
|