These are chat archives for dry-rb/chat
Eitherresponse? Or will it fail if one of them returns
Left, all the moving parts are https://github.com/dry-rb/dry-transaction/blob/master/lib/dry/transaction/step.rb#L34-L45 and https://github.com/dry-rb/dry-transaction/blob/master/lib/dry/transaction/sequence.rb#L60
map :qc_silence, the
QcSilenceshould never return
Rightso it should work just fine for you :) BUT there is a caveat
QcSilence, map will wrap it once again
Rightthen maybe it’d be better to just pass plain values
Right. However they are independent. And now new requirement came they should run always no matter if any of them failed in a previous step.
Matcher.newthat's called the matcher object?
Is this correct ?
# frozen_string_literal: true class User < Dry::Struct attribute :id, Types::Strict::Int attribute :source_url, Types::Strict::String attribute :width, Types::Maybe::Float attribute :height, Types::Maybe::Float attribute :format, Types::Maybe::String end
NameError: Float cannot be autoloaded from an anonymous class or module
matcher.(result)#=> no handler was found ? how do i know
Maybeit is required to add the optional keys on the initializer hash ?
Maybetypes should behave as
Default, so whether keys are mandatory or not depends on what constructor_type you use