Skip to main content

BoolValidator

This class provides functionality for validating boolean values, offering a strict mode to enforce specific type constraints. It is designed to ensure that input data conforms to expected boolean formats during data processing or validation workflows.

Attributes

AttributeTypeDescription
strictboolDetermines whether the validator requires an exact boolean type or allows for truthy and falsy value coercion.

Constructor

Signature

def BoolValidator(
strict: bool
) - > null

Parameters

NameTypeDescription
strictboolDetermines whether the validator should enforce strict boolean checking.

Signature

def BoolValidator(
strict: bool
) - > null

Parameters

NameTypeDescription
strictboolDetermines if the validator should strictly enforce boolean types or allow truthy/falsy conversions.