The Boolean field is used to generate a random boolean value.
fields:
- name: BoolMaybeNull
type: Boolean
null_probability: 0.5
- name: Bool
type: Boolean
constraints:
- type: IfNull
name: BoolMaybeNull
| BoolMaybeNull | Bool |
| true | |
| true | |
| true |
| true | |
| false |
| Name | Type | Description | Default |
| Name | Type | Description | Default Value |
| null_probability | float | The probability that the field will be null. | 0.0 |
| constraints | list | A list of constraints to apply to the field. | [] |
| Name | Description |
| IfNull | The value must only be non-null if another field is null. |