- Home
- OpenAPI Hub
- Data Types
- Booleans
Booleans in OpenAPI best practices
booleans
The boolean type is simple; it represents either true or false. Be aware that it doesn’t support other truthy/falsy values like: 1 or 0, an empty string “” or null. It has no additional attributes to control its format or validation.
# A boolean typeschema: type: boolean