Skip to main content
Module

x/json_schema_to_ts/index.js>JSONSchema

Infer TS types from JSON schemas 📝
Latest
type alias JSONSchema
import { type JSONSchema } from "https://deno.land/x/json_schema_to_ts@v3.1.0/index.js";
definition: boolean | Readonly<{ [$JSONSchema]?: $JSONSchema; $id?: string | undefined; $ref?: string | undefined; $schema?: string | undefined; $comment?: string | undefined; type?: JSONSchemaType | readonly JSONSchemaType[]; const?: unknown; enum?: unknown; multipleOf?: number | undefined; maximum?: number | undefined; exclusiveMaximum?: number | undefined; minimum?: number | undefined; exclusiveMinimum?: number | undefined; maxLength?: number | undefined; minLength?: number | undefined; pattern?: string | undefined; items?: JSONSchema | readonly JSONSchema[]; additionalItems?: JSONSchema; contains?: JSONSchema; maxItems?: number | undefined; minItems?: number | undefined; uniqueItems?: boolean | undefined; maxProperties?: number | undefined; minProperties?: number | undefined; required?: readonly string[]; properties?: Readonly<Record<string, JSONSchema>>; patternProperties?: Readonly<Record<string, JSONSchema>>; additionalProperties?: JSONSchema; dependencies?: Readonly<Record<string, JSONSchema | readonly string[]>>; propertyNames?: JSONSchema; if?: JSONSchema; then?: JSONSchema; else?: JSONSchema; allOf?: readonly JSONSchema[]; anyOf?: readonly JSONSchema[]; oneOf?: readonly JSONSchema[]; not?: JSONSchema; format?: string | undefined; contentMediaType?: string | undefined; contentEncoding?: string | undefined; definitions?: Readonly<Record<string, JSONSchema>>; title?: string | undefined; description?: string | undefined; default?: unknown; readOnly?: boolean | undefined; writeOnly?: boolean | undefined; examples?: readonly unknown[]; nullable?: boolean; }>