-
## Describe the bug
Hello. I'm running into an issue where a Dry::Validation::Contract reports an error for coercible integer strings, but only when a hash field fails validation. I've included s…
-
## Describe the bug
The error message from dry-validation for incorrect key nesting in en.yml file for rule with nested params is giving wrong path.
## To Reproduce
Consider having such schema an…
-
https://github.com/FACG2/twitter/blob/master/public/js/validation.js
This:
```
if (this.value.length < 2) {
this.classList.add('wrongInput');
validationErrors.username = 'userna…
-
## Examples
```ruby
require 'dry-validation'
class PropsContract < Dry::Validation::Contract
json do
required(:contacts).value(:array, min_size?: 1).each do
hash do
requ…
-
At the moment validation contract returns nice human-readable errors via translation backend. Being a robot, I do not like it and I'd prefer pure data object/hash to be returned.
Justification: I d…
-
A "dry run" for uploading a package means that the uploaded package goes through every validation step but in the end isn't stored in the database. It is a "simulated run". However, it is necessary th…
-
## Describe the bug
There can be a case when no schema for a hash is set. In such a case, there's not need to validate keys. I might be wrong but it's just logical to me.
## To Reproduce
```r…
-
Rails model is where data validation takes place by convention. Doing so will help reduce confusion and ensure code DRYness.
-
Great idea. Haven't dived into Tailwind because of the apparent need to pick a basic framework
```
➜ rails -v
Rails 7.1.3
Documents/Ruby/tailstart-main via 💎 ruby-3.3.0
➜ ./create.sh
Fetching …
-
I'd like to be able to specify a macro in the following manner: `rule(foo: :bar).each` where both `foo` and `bar` are arrays.
## Examples
As an example please have a look at this spec that's cur…