dry-rb / dry-types

Flexible type system for Ruby with coercions and constraints
https://dry-rb.org/gems/dry-types
MIT License
859 stars 134 forks source link

Implement SchemaError#value and SchemaError#key #427

Closed oleander closed 3 years ago

oleander commented 3 years ago

This PR implements SchemaError#key & SchemaError#value. It makes SchemaErrors interface more in line with MissingKeyError, UnknownKeysError & ConstraintError which have (most) of their instance variables accessible to the public.

flash-gordon commented 3 years ago

thanks!