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%
Downloads68/wk
Publisheda month ago (1.1.0)

A standard interface for TypeScript schema validation libraries

interface StandardJSONSchemaV1.Converter

The Standard JSON Schema converter interface.

Properties

readonly
input: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>

Converts the input type to JSON Schema. May throw if conversion is not supported.

readonly
output: (options: StandardJSONSchemaV1.Options) => Record<string, unknown>

Converts the output type to JSON Schema. May throw if conversion is not supported.

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";