dry-schema
dry-schema copied to clipboard
Coercion and validation for data structures
Update all usages of dry-configurable-provided `config` so that any changes are made inside `configure` blocks. This prepares for the changes in https://github.com/dry-rb/dry-configurable/pull/140.
This was extracted from main where these changes have been revert as it caused issues with releases as I pushed unwanted changes *twice* :(
This is a duplicate of https://github.com/dry-rb/dry-validation/issues/713 ## Describe the bug When creating a custom type and using with the `array` rule, it appears that the validations applied by the type...
## Describe the bug Inconsistent errors using struct extension with nested arrays and query parameters. **No issues with single element arrays**. ## To Reproduce ```ruby class FilterStruct < Dry::Struct attribute?...
Addresses https://github.com/dry-rb/dry-schema/issues/476
## 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 ``` require 'dry/schema' require 'uri' contract =...
Hello, since I am facing the same issue (#470), I decided to try and fix it.
Fix for https://github.com/dry-rb/dry-schema/issues/400 Objects nested under arrays are not neccesailry arrays themselves - the `:member` option shouldn't be passed down the AST when generating json-schema. For example for the test...
## Describe the bug I have the following schema that works in isolation, but not inside an `array(:hash)` with a required field with a filter that won't work ## To...
Fixes info extension for maybe macro, it introduces `nullable` flag to represent whether a key is nullable or not. ```ruby schema = Dry::Schema.JSON do required(:email).filled(:string) optional(:age).maybe(:integer) end ``` **BEFORE** ```...