Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
0
Share

BoolValidator

Validator class.

This validator allows validating serialized (or deserialized) boolean parameter values.

Usage: Let validator = BoolValidator(), then * validator.validate(False) -> False * validator.validate(True) -> True * validator.validate('true') -> True * validator.validate('false') -> False * validator.validate('foo') -> ValueError * validator.validate(4) -> ValueError

Functions
__init__

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

set_type
type_ : Union
validate

Valitates a value.

value : Union
The value to validate
Return type : Any
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.