ColumnOverrides

pydantic model felis.datamodel.ColumnOverrides

Allowed overrides for a referenced column.

All fields are optional; missing values mean “inherit from the base column”.

Parameters:

data (Any)

Fields:
Validators:
field datatype: DataType | None = None

New datatype for the column.

Validated by:
field description: str | None = None

New description for the column.

field length: int | None = None

New length for the column.

field nullable: bool = True

New nullable flag for the column.

field tap_column_index: int | None = None (alias 'tap:column_index')

Override for the TAP_SCHEMA column index.

field tap_principal: int | None = None (alias 'tap:principal')

Override for the TAP_SCHEMA ‘principal’ flag.

validator deserialize_datatype  »  datatype

Convert string back into DataType when loading from JSON/YAML.

Parameters:

value (str | None) – The string value to deserialize, or None.

Returns:

The deserialized DataType value, or None if the input was None.

Return type:

DataType | None

serialize_datatype(value)

Convert DataType to string when serializing to JSON/YAML.

Parameters:

value (DataType | None) – The DataType value to serialize, or None.

Returns:

The serialized DataType value, or None if the input was None.

Return type:

str | None