README_V2.md in schemacop-3.0.28 vs README_V2.md in schemacop-3.0.29
- old
+ new
@@ -142,15 +142,15 @@
# validate returns a collector
s = Schema.new do
req :foo, default: 42
end
-collector = s.validate({})
+collector = s.validate({})
collector.valid? # true
collector.data # => { foo: 42 }
-collector = s.validate({ foo: 'invalid' })
+collector = s.validate({ foo: 'invalid' })
collector.valid? # false
collector.data # => nil
collector.exceptions # => Validation error
```
@@ -770,6 +770,6 @@
* Run `bundle exec rake test TEST=test/unit/some/file.rb` to run a single test
file
## Copyright
-Copyright (c) 2020 Sitrox. See `LICENSE` for further details.
+Copyright (c) 2024 Sitrox. See `LICENSE` for further details.