Skip to content

JsonSchemaObject

@tsed/schema

Usage

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

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

Overview

ts
interface JsonSchemaObject extends JSONSchema6, Record<string, any> {
    type: (any | JSONSchema6TypeName) | (any | JSONSchema6TypeName)[];
    additionalProperties?: boolean | JSONSchema6 | any;
    propertyNames?: boolean | JSONSchema6 | any;
    items?: (any | JSONSchema6Definition) | (any | JSONSchema6Definition)[];
}

type:

ts
type: (any | JSONSchema6TypeName) | (any | JSONSchema6TypeName)[];

additionalProperties

ts
additionalProperties?: boolean | JSONSchema6 | any;

propertyNames

ts
propertyNames?: boolean | JSONSchema6 | any;

items:

ts
items?: (any | JSONSchema6Definition) | (any | JSONSchema6Definition)[];

Released under the MIT License.