Nikita Shilnikov

Results 16 issues of Nikita Shilnikov

Here I'm trying to inject a dependency named `config` using the default kwargs strategy of dry-auto_inject. ```ruby class MyContract < Dry::Validation::Contract include Import['config'] json do required(:foo).maybe(:string) end rule(:foo) do key.failure("foo...

feature

In complex rules, it may be useful to know whether the key has any failure message already. ```ruby rule(:foos).each do key.success? # => true key.failure? # => false key.failure('wrong') key.success?...

help wanted
feature

**Describe the bug** If you paginate over a filtered relation (say, `users.active`) then `rel.total` will return incorrect results since it calls `dataset.unfiltered` which discard all the filtering. **To Reproduce** `user.active.pager.total`...

bug

We store qualified attributes in schemas, that's good. But when you call `.where(name: 'abc')` then symbols from the hash don't get converted to attributes from the schema and thus get...

It's probably will be tricky because PG has 5 formats for input and 4 for output, or something like that. https://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-INTERVAL-INPUT

help wanted
postgres
inferrer

The spec in this PR works in 1.9.3 but fails in our main branch with the following backtrace ``` 1) Registering custom types class-based definition maybe decimal coerces the type...

As an example ```ruby Dry::Schema.JSON do each do schema do required(:name).filled(:str?) required(:age).filled(:int?) end end end ```

feature

JSON is often used as a serialization format for communicating within heterogeneous systems with apps written in different languages. In this context, some error messages reported by dry-schema can be...

The JSON standard defines the following data types - number (WRT ruby both float and integer shall be supported) - string - boolean - array - object (represented as Hash...

discussion
feature

I think I managed to make it work without warnings. We should merge this PR once we're ready to cut a release.