Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score94%
Downloads70/wk
Publisheda month ago (1.1.0)

A standard interface for TypeScript schema validation libraries

interface StandardJSONSchemaV1.Options

The options for the input/output methods.

Properties

readonly
target: Target

Specifies the target version of the generated JSON Schema. Support for all versions is on a best-effort basis. If a given version is not supported, the library should throw.

readonly
optional
libraryOptions: Record<string, unknown> | undefined

Explicit support for additional vendor-specific parameters, if needed.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@standard-schema/spec

Import symbol

import { StandardJSONSchemaV1 } from "@standard-schema/spec";
or

Import directly with a jsr specifier

import { StandardJSONSchemaV1 } from "jsr:@standard-schema/spec";

Add Package

pnpm i jsr:@standard-schema/spec
or (using pnpm 10.8 or older)
pnpm dlx jsr add @standard-schema/spec

Import symbol

import { StandardJSONSchemaV1 } from "@standard-schema/spec";

Add Package

yarn add jsr:@standard-schema/spec
or (using Yarn 4.8 or older)
yarn dlx jsr add @standard-schema/spec

Import symbol

import { StandardJSONSchemaV1 } from "@standard-schema/spec";

Add Package

vlt install jsr:@standard-schema/spec

Import symbol

import { StandardJSONSchemaV1 } from "@standard-schema/spec";

Add Package

npx jsr add @standard-schema/spec

Import symbol

import { StandardJSONSchemaV1 } from "@standard-schema/spec";

Add Package

bunx jsr add @standard-schema/spec

Import symbol

import { StandardJSONSchemaV1 } from "@standard-schema/spec";