Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 05:53
    technofreak starred dry-rb/dry-monads
  • 00:14
    thekuwayama starred dry-rb/dry-monads
  • Dec 11 09:29
    blasterun starred dry-rb/dry-monads
  • Dec 11 08:34
    flash-gordon closed #115
  • Dec 11 08:34
    flash-gordon commented #115
  • Dec 11 08:31

    flash-gordon on v1.3.3

    (compare)

  • Dec 11 08:30

    flash-gordon on master

    Bump version to 1.3.3 (compare)

  • Dec 11 08:30

    flash-gordon on master

    Update CHANGELOG (compare)

  • Dec 10 23:46
    johnmaxwell commented #116
  • Dec 10 21:54

    flash-gordon on master

    Halt with mutable backtrace Ex… Merge pull request #116 from jo… (compare)

  • Dec 10 21:54
    flash-gordon closed #116
  • Dec 10 21:54
    flash-gordon commented #116
  • Dec 10 21:49
    johnmaxwell commented #116
  • Dec 10 21:47
    johnmaxwell commented #116
  • Dec 10 21:43
    johnmaxwell commented #116
  • Dec 10 21:39
    johnmaxwell commented #116
  • Dec 10 21:31
    johnmaxwell commented #116
  • Dec 10 21:22
    flash-gordon commented #116
  • Dec 10 19:41
    johnmaxwell opened #116
  • Dec 10 19:36
Aditya Tiwari
@aditya01933

If I am passing ApplicationSchema then it is generating error :

NoMethodError: undefined method `Validation' for Dry:Module

Piotr Solnica
@solnic
@aditya01933 Dry::Validation.Schema(ApplicationSchema)
Aditya Tiwari
@aditya01933
yeah fixed it out.. it was my bad :(
Thanks @solnic
:)
Piotr Solnica
@solnic
@fran-worley I’m gonna be a :skull: - :star2: soon ;)
John Backus
@backus
@solnic looks like I'll have time to wrap up dry-types / dry-struct things tomorrow :)
Piotr Solnica
@solnic
@backus oh that would be amazing
it’s possible I’ll wrap up dry-v too…
we’d have an EPIC release then
John Backus
@backus
I don't know if I'll be able to finish it all but I'll have a solid 6-8 hours
and I can prioritize properly to get the necessary functionality ready and then dive into refactoring
to make it most likely we have something releaseable
I just don't want the schemas in dry-t to have so much duplication :'(
Piotr Solnica
@solnic
this is the tricky part
I optimized for performance hence duplication but who knows, maybe it can be cleaner & faster somehow :)
John Backus
@backus
Yeah I'll try to be conscious of that
The other aspect I'm unsure about is whether constraints should ideally be represented in dry logic as much as possible
or if we would rather do all of this key checking, default value filling, and coercion directly like it currently does
Piotr Solnica
@solnic
dry-logic is now few times faster so we could consider that
and there are opportunities for more optimization there
John Backus
@backus
Cool
I also imagine that, for dry-v and dry-t, the more that can be expressed using dry logic the better (barring big perf hits)
Piotr Solnica
@solnic
yeah I mean that was my intention when I extracted dry-logic (it was part of dry-validation originally)
John Backus
@backus
Right
Piotr Solnica
@solnic

ok folks I’m done with logic/validation stuff…I’d appreciate if you could add this:

gem 'dry-validation', github: 'dry-rb/dry-validation', branch: 'master'
gem 'dry-types', github: 'dry-rb/dry-types', branch: 'master'
gem 'dry-struct', github: 'dry-rb/dry-struct', branch: 'master'
gem ‘dry-logic’, github: 'dry-rb/dry-logic', branch: 'master'

to your Gemfile and run your tests…

Nikita Shilnikov
@flash-gordon
@solnic dry-rb/dry-validation#238 <- I'll update this today
Piotr Solnica
@solnic
@flash-gordon cool, you could collaborate with @cored as he’s working on optional dry-struct support which has the identical problem as it needs feature detection too
@fran-worley hey! could you tell me if latest stuff from master works fine with Reform and friends?
Rafael George
@cored
@flash-gordon hey
@solnic according to that issue the dependency then should be remove from the Gemfile? I mean by optional you mean that the user will install the dependency by itself ?
s/itself/himself
Nikita Shilnikov
@flash-gordon
@cored hey, that's what @solnic told me: https://github.com/dry-rb/dry-validation/pull/238#issuecomment-244924977 :) I'm just gonna do a monkey-patch with opt-in to_either method
so this case is trivial ^
Rafael George
@cored
so you will try to require at the same method level ?
Nikita Shilnikov
@flash-gordon
@cored require 'dry/monads/either'; require dry-v/either-ext at the end of result.rb I think, with LoadError being caught
Rafael George
@cored
I see
Nikita Shilnikov
@flash-gordon
@cored dry-struct part can be done with a runtime check like defined? ::Dry::Struct && input < ::Dry::Struct
Rafael George
@cored
I see
so since some specs have a definition for an struct, I guess the check also will be there
Piotr Solnica
@solnic
meh, seems like OR-handling still needs some work
Fran Worley
@fran-worley
@solnic I'll check today and get back to you. We will hold off our next release until dry-validation 0.10.0 is out as I want to use some of the goodies you've added :)
Piotr Solnica
@solnic
@fran-worley this has to wait until next week, I thought I’d make it before end of this week but I failed
Fran Worley
@fran-worley
Oh no worries, @apotonick is busy at the moment so we won't be releasing any earlier. When we do release it will be a big dry-v plug as the update is essentially improving Reforms integration with dry
Piotr Solnica
@solnic
that’s great, I’ll try to help
Fran Worley
@fran-worley
Definitely more trailblazer people are switching over especially as @apotonick has set it up so you can gradually transition an app from AM-V to dry.
Russell Edens
@rx
@solnic, @backus backing up to your conversation earlier today ... In working on dry-rb/dry-validation#67 I wanted to provide a consistent api for discovering fields in a dry-v and a dry-s. Having both libraries use a more consistent schema interface would make this much cleaner. As it is right now I have to make dry-l look more like dry-v at the rule-ast level.
I'll be pushing some code to look at later today/tonight.
^^ unfortunate typo - should be: As it is right now I have to make dry-s look more like dry-v at the rule-ast level.
Piotr Solnica
@solnic
@rx did you use dry-logic from master? it changed quite a bit