Infrastructure · Data Structures
Boolean
Binary truth value — true or false
Definition
Mechanism
The primitive true/false type. A Boolean value is one of exactly two mutually exclusive members: true or false. Used as the output type of schema-validation and as the evaluation return of conditional traits. Distinct from the three-state Decision (proceed/halt/debt) and from the graded Status (verified/falsified/unknown): Boolean admits no middle value.
Invariants
- Exhaustive: every Boolean value is one of exactly two members.
- Exclusive: no value is simultaneously true and false.
Risks
Failure modes
None stated.
Relationships
Root pattern: builds on nothing in this library.
Used by
Yields
Verifying inputs conform to expected schema
Reference
Data schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "boolean",
"description": "The truth value: true or false"
}
}
}