UNPKG

json-schema-migrate-x

Version:

Migrate JSON-Schema `draft-04` to `draft-07`, `draft-2019-09` or `draft-2020-12`

5 lines (4 loc) 385 B
import type { AnySchemaObject } from 'ajv'; import type { SchemaVersion } from './types.js'; export declare function constantResultSchema(schema: AnySchemaObject): boolean | undefined; export declare function metaSchema(version: SchemaVersion): "http://json-schema.org/draft-07/schema" | "https://json-schema.org/draft/2019-09/schema" | "https://json-schema.org/draft/2020-12/schema";