gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

Validator

Base validator class Base validator allows validating serialized (or deserialized) parameter values according to a type.

Usage: This class should not be used as it, but rather use to implement validator subclasses. It provides the construction :meth:from_specs to create usable basic validators.

:property type: The expected type of the value :type type: type

Functions
__init__

Initialize self. See help(type(self)) for accurate signature.

type_ : Literal
allowed_values : list
set_type
type_ : Union
validate

Valitates a value.

value : Union
The value to validate
Return type : Any