Boolean content
Learn how to define boolean content.
This content type defines static or dynamic boolean values such as on/off or yes/no switches for boolean schemas.
Examples
Here are some examples of static and dynamic content:
{"type": "boolean","value": {"type": "static","value": true}}
Properties
These are the properties common to static and dynamic values:
- typestring
The type of attribute. Always boolean for boolean values.
- value
The definition of the value.
Static properties
The following properties are available for static values:
Dynamic properties
The following properties are available for dynamic values:
- typestring
The type of the value. Always dynamic for dynamic values.
- expressionstring
The CQL expression that evaluates to the value.
- nullableboolean
Whether the value can be null.
This value must match the optional property of the associated attribute. In other words, if the attribute is optional, then the value is nullable.
Default:false- default(optional)boolean|null
The default value to use when the evaluation fails, results in null, or produces an incompatible type.