sgr_commhandler.validators.resolver

Provides function to create validators.

Functions

build_validator(type)

Builds a data point validator from a data type specification.

Module Contents

sgr_commhandler.validators.resolver.build_validator(type)

Builds a data point validator from a data type specification.

Parameters:

type (Optional[DataTypeProduct]) – the data type specification

Returns:

a data point validator

Return type:

DataPointValidator

Raises:

Exception – when data type has no supported validator