Interface SubdocumentSchemaField<T, Required>
Type Parameters
- T extends {
[key: string]: SchemaField<
| SchemaDataType
| {
[key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>;
},
>;
} - Required = undefined
Properties
Optionaldefault
default?: any
Optionaldiscriminators
discriminators?: Record< string, Record< string, SchemaField< | SchemaDataType | { [key: string]: SchemaField<SchemaDataType | { [key: string]: SchemaField<SchemaDataType | ...>; }>
; }, >, >,> Optionalenum
enum?:
| (null | string | number)[]
| readonly (null | string | number)[]
| {
message?: string;
values: (null | string | number)[] | readonly (null | string | number)[];
}
| { [path: string]: null
| string
| number }
Optionalheight
height?: number
Optionallabel
label?: string
OptionalmaxLength
maxLength?: number
Optionalminlength
minlength?: number
OptionalminLength
minLength?: number
Optionalreadonly
readonly?: boolean
OptionalrefPath
refPath?: string
Optionalrequired
required?: Required extends boolean ? true : false Optionalsparse
sparse?: boolean
OptionaluiModelType
uiModelType?: string
Optionalunique
unique?: boolean
Optionalwidth
width?: number
Deprecated
Please use minLength in the future