README.md in schemacop-2.0.0 vs README.md in schemacop-2.1.0
- old
+ new
@@ -273,14 +273,15 @@
You might find the notation cumbersome, and you'd be right to say so. Luckily
there are plenty of short forms available which we will see below.
## Types
-The following types are supported by Schemacop:
-<!-- TODO: Test the following statement: (you can easily extend them by writing
-another `your_validator.rb` class under `validator/`): -->
+Types are defined via their validators, which is a class under `validator/`.
+Each validator is sourced by `schemacop.rb`.
+The following types are supported by Schemacop by default:
+
* `:boolean` accepts a Ruby TrueClass or FalseClass instance.
* `:integer` accepts a Ruby Integer.
- supported options: `min`, `max` (lower / upper bound)
@@ -294,9 +295,11 @@
- supported options: `min`, `max` (lower / upper bound)
* `:string` accepts a Ruby String.
- supported options: `min`, `max` (bounds for string length)
+
+* `:symbol` accepts a Ruby Symbol.
* `:object` accepts an arbitrary Ruby object (any object if no option is given).
- supported option: `classes`: Ruby class (or an array of them) that will be
the only recognized filters. Unlike other options, this one affects not the