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
| Attribute | Type | Description |
|---|---|---|
| strict | bool | Determines whether the validator requires an exact boolean type or allows for truthy and falsy value coercion. |
Constructor
Signature
def BoolValidator(
strict: bool
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| strict | bool | Determines whether the validator should enforce strict boolean checking. |
Signature
def BoolValidator(
strict: bool
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| strict | bool | Determines if the validator should strictly enforce boolean types or allow truthy/falsy conversions. |