The Boolean type represents true/false values.
Type URL | https://rustybeam.net/schema/Boolean |
---|---|
Base Type | boolean |
Default Pattern | ^(true|false|1|0|yes|no|on|off)$ |
Constraints | {"case_insensitive": true} |
The validation pattern accepts (case-insensitive):
true
, false
1
(true), 0
(false)yes
(true), no
(false)on
(true), off
(false)<tr itemscope itemtype="https://rustybeam.net/schema/Property">
<td><span itemprop="name">isActive</span></td>
<td><span itemprop="type">Boolean</span></td>
<td><span itemprop="cardinality">1</span></td>
<td><span itemprop="description">Whether the account is active</span></td>
</tr>
<meta itemprop="isActive" content="true">
Note: For boolean values in HTML, use <meta>
tags with the content
attribute, or store the value in element text content.
Validation software should normalize all accepted values to canonical true
or false
:
true
, 1
, yes
, on
→ true
false
, 0
, no
, off
→ false