README_V3.md in schemacop-3.0.18 vs README_V3.md in schemacop-3.0.19
- old
+ new
@@ -233,11 +233,13 @@
Validates for a valid email address. There is no casting involved since email
addresses do not have their own ruby type.
* `boolean`
The string must be either `true`, `false`, `0` or `1`. This value will be
- casted to Ruby's `TrueClass` or `FalseClass`.
+ casted to Ruby's `TrueClass` or `FalseClass`. Please note that the strings
+ `true` and `false` are case-insensitive, i.e. `True`, `TRUE` etc. will also
+ work.
* `binary`
The string is expected to contain binary contents. No casting or additional
validation is performed.
@@ -527,10 +529,10 @@
#### Options
* `cast_str`
When set to `true`, this node also accepts strings that can be casted to a
boolean, namely the values `'true'`, `'false'`, `'1'` and `'0'`. Blank strings
- will be treated equally as `nil`.
+ will be treated equally as `nil`. This casting is case-insensitive.
#### Examples
```ruby
# Validates that the input is a boolean