Interface UcSchema<T>

Data schema definition.

Describes data type along with its serialization format.

Type Parameters

  • out T = unknown

    Implied data type.

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: string | UcDataType<T>

Either unique type name, or type class.

Code generation is based on this name.

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

Schema constraints.

within?: UcPresentations<T>

Schema instance presentation constraints.

Methods

Generated using TypeDoc