Interface SubdocumentSchemaField<T, Required>

interface SubdocumentSchemaField<
    T extends
        {
            [key: string]: SchemaField<
                | SchemaDataType
                | {
                    [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
                },
            >;
        },
    Required = undefined,
> {
    default?: any;
    discriminators?: Record<
        string,
        Record<
            string,
            SchemaField<
                | SchemaDataType
                | {
                    [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
                },
            >,
        >,
    >;
    enum?: | (null | string | number)[]
    | readonly (null | string | number)[]
    | {
        message?: string;
        values: (null | string | number)[] | readonly (null | string | number)[];
    }
    | { [path: string]: null
    | string
    | number };
    fit?: string;
    height?: number;
    index?: any;
    inputType?: UIInputType;
    label?: string;
    max?: number;
    maxLength?: number;
    min?: number;
    minlength?: number;
    minLength?: number;
    options?: ValueLabel[];
    readonly?: boolean;
    ref?: CollectionNames;
    refPath?: string;
    required?: Required extends boolean ? true : false;
    schemaOptions?: SchemaOptions;
    sparse?: boolean;
    type: T;
    uiModelType?: string;
    unique?: boolean;
    width?: number;
}

Type Parameters

  • T extends {
        [key: string]: SchemaField<
            | SchemaDataType
            | {
                [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
            },
        >;
    }
  • Required = undefined

Hierarchy (View Summary)

Properties

default?: any
discriminators?: Record<
    string,
    Record<
        string,
        SchemaField<
            | SchemaDataType
            | {
                [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
            },
        >,
    >,
>
enum?:
    | (null | string | number)[]
    | readonly (null | string | number)[]
    | {
        message?: string;
        values: (null | string | number)[] | readonly (null | string | number)[];
    }
    | { [path: string]: null
    | string
    | number }
fit?: string
height?: number
index?: any
inputType?: UIInputType
label?: string
max?: number
maxLength?: number
min?: number
minlength?: number

Please use minLength in the future

minLength?: number
options?: ValueLabel[]
readonly?: boolean
refPath?: string
required?: Required extends boolean ? true : false
schemaOptions?: SchemaOptions
sparse?: boolean
type: T
uiModelType?: string
unique?: boolean
width?: number