-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dry::Schema::Compiler
cannot handle Types::Hash.map
types
#467
Labels
Comments
postmodern
changed the title
Dry::Schema::Compiler cannot handle
Sep 3, 2023
Types::Hash.map
typesDry::Schema::Compiler
cannot handle Types::Hash.map
types
It's not yet supported, we could throw a more meaningful error for a start. Adding support would require adding some predicates to dry-logic that we can later infer here, in dry-schema. |
Oh, actually, predicate_inferrer resides in dry-types |
flash-gordon
added a commit
to dry-rb/dry-types
that referenced
this issue
Sep 6, 2023
I added a clean message about it to dry-types |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I am trying to use a
dry-type
ofTypes::Hash.map(Types::String, Types::String)
in aDry::Validation::Contract
class, howeverDry:Schema::Compiler
attempts to call the non-existentvisit_map
method.To Reproduce
Expected behavior
Loads and initializes the types.
Actual Result
My environment
The text was updated successfully, but these errors were encountered: