Skip to content

JsonSchemaObject

@tsed/schema

Usage

typescript
import { JsonSchemaObject } from "@tsed/schema";

See /packages/specs/schema/src/domain/JsonSchema.ts.

Overview

ts
interface JsonSchemaObject extends Omit<JSONSchema7, "type" | "additionalProperties" | "items"> {
    type?: Type | JSONSchema7["type"] | null | (String | null | Date | Number | Object | Boolean)[];
    additionalProperties?: boolean | JSONSchema7 | Type | JsonSchema;
    items?: (Type | JSONSchema7Definition | JsonSchema) | (Type | JSONSchema7Definition | JsonSchema)[];
}

type: Type | JSONSchema7["type"] | null |

ts
type?: Type | JSONSchema7["type"] | null | (String | null | Date | Number | Object | Boolean)[];

additionalProperties

ts
additionalProperties?: boolean | JSONSchema7 | Type | JsonSchema;

items:

ts
items?: (Type | JSONSchema7Definition | JsonSchema) | (Type | JSONSchema7Definition | JsonSchema)[];

Released under the MIT License.