dry-schema icon indicating copy to clipboard operation
dry-schema copied to clipboard

Coercion and validation for data structures

Results 77 dry-schema issues
Sort by recently updated
recently updated
newest added

We use the Config gem: https://github.com/rubyconfig/config for our Rails application and validate using Dry Schema. We've recently updated the gem to the latest version and noticed that keys with question...

Behavior is inconsistent between "flat" and nested schema when an exception occur. ## To reproduce ```ruby NestedSchema = Dry::Schema.Params do required(:value).filter(format?: /^\d+$/).value(:float) end ParentSchema = Dry::Schema.Params do required(:data).hash(NestedSchema) end #...

bug
help wanted

## Describe the bug When using [schema composition `or`](https://dry-rb.org/gems/dry-schema/1.10/advanced/composing-schemas/) in a schema along with `config.validate_keys = true`, the errors for the keys are set considering all the composed schemas. ##...

bug
help wanted

I had to look into specs to discover that this behavior was supported: https://github.com/dry-rb/dry-schema/blob/main/spec/integration/params/macros/value_spec.rb#L31 I feel this is a very useful pattern, and that making it more discoverable will be...

## Describe the bug This is probably more a feature request, or unexpected behavior detected. The hash validated correctly, but JSON schema generated is incorrect. For arrays [there are special...

bug
help wanted

Today I found this use case where our partner was sending us information either as `nil` or as an array of hashes. I couldn't find any readily available documentation on...