Open timjnh opened 6 months ago
With 1.13.3 I receive a Dry::Schema::MissingMessageError if I try to generate errors for the uri? predicate
require 'dry/schema' require 'uri' contract = Dry::Schema.Params do required(:uri) { str? & uri?(:https) & filled? } end result = contract.call(uri: "nope") puts result.errors.inspect
I should get a reasonable error message such as must be a valid URI
must be a valid URI
Happy to put in a PR to fix this one. Seems very similar to https://github.com/dry-rb/dry-schema/issues/470 and https://github.com/dry-rb/dry-schema/pull/244/files
Describe the bug
With 1.13.3 I receive a Dry::Schema::MissingMessageError if I try to generate errors for the uri? predicate
To Reproduce
Expected behavior
I should get a reasonable error message such as
must be a valid URI
My environment