README.md in strong_json-0.4.0 vs README.md in strong_json-0.5.0
- old
+ new
@@ -102,11 +102,11 @@
* `ignored` Any value will be ignored
* `symbol` The value must be an instance of `String` or `Symbol`; returns the result ot `#to_sym`
### Literals
-* `literal(lit)` The value must `=== lit`
+* `literal(lit)` The value must `== lit`
### Shortcuts
There are some alias for `optional(base)`, where base is base types, as the following:
@@ -114,9 +114,10 @@
* `string?`
* `boolean?`
* `numeric?`
* `symbol?`
* `literal?(lit)`
+* `any?`
Shorthands for `optional(array(ty))` and `optional(object(fields))` are also defined as the following:
* `array?(ty)`
* `object?(fields)`