You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a very particular case, where I have a set of mappers (where only one should apply), the selection of which depends on a value earlier in the path. Here an example that I hope is not too convoluted:
classEmbedded < Remap::Basecontractdo# Check somehow that `values.get(:d)` is trueenddefinedomap(:b,to: :test)to(:static).then{'d is true'}endendclassTest < Remap::Basedefinedomap[:a]doeachdomap(:c,to: :something)embedEmbeddedendendendendTest.call({a: [{b: 1,c: 2},{b: 3,c: 4}],d: true})
Is there a way to reference not the input of the mapper, but what came before it in the contract?
The text was updated successfully, but these errors were encountered:
I have a very particular case, where I have a set of mappers (where only one should apply), the selection of which depends on a value earlier in the path. Here an example that I hope is not too convoluted:
Is there a way to reference not the input of the mapper, but what came before it in the contract?
The text was updated successfully, but these errors were encountered: