Interface Schema

Schema for string value.

String schema is created automatically when String constructor is used as model.

When additional options needed, the schema has to be created explicitly.

Hierarchy

Properties

nullable?: boolean

Whether the data is nullable.

When true the data value may be null.

Default Value

false, which means null data value prohibited.

optional?: boolean

Whether the data is optional.

When true the data value may be undefined.

Default Value

false, which means undefined data value prohibited.

type: UcDataType<string>

String schema type always refers to standard String constructor.

where?: UcConstraints<string, UcSchema<string>>

Schema constraints.

within?: UcPresentations<string>

Schema instance presentation constraints.

Methods

Generated using TypeDoc