JsonSchemaObject
@tsed/schema
Usage
typescript
import { JsonSchemaObject } from "@tsed/schema";
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)[];