SchemaShared interface

Basic Schema properties shared across several Schema-related types.

Signature:

exportinterfaceSchemaShared<T>

Properties

PropertyTypeDescription
descriptionstringOptional. The description of the property.
enumstring[]Optional. The enum of the property.
exampleunknownOptional. The example of the property.
formatstringOptional. The format of the property.
itemsTOptional. The items of the property.
nullablebooleanOptional. Whether the property is nullable.
properties{ [k: string]: T; }Optional. Map of Schema objects.

SchemaShared.description

Optional. The description of the property.

Signature:

description?:string;

SchemaShared.enum

Optional. The enum of the property.

Signature:

enum?:string[];

SchemaShared.example

Optional. The example of the property.

Signature:

example?:unknown;

SchemaShared.format

Optional. The format of the property.

Signature:

format?:string;

SchemaShared.items

Optional. The items of the property.

Signature:

items?:T;

SchemaShared.nullable

Optional. Whether the property is nullable.

Signature:

nullable?:boolean;

SchemaShared.properties

Optional. Map of Schema objects.

Signature:

properties?:{[k:string]:T;};