From a46f103c418a3c84cf4d0c42678583d238fb7609 Mon Sep 17 00:00:00 2001 From: Emanuele Magliozzi Date: Tue, 19 Mar 2019 14:38:15 +1100 Subject: [PATCH] Do not try to merge extract_failure signal when representer is used --- lib/trailblazer/operation/validate.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/trailblazer/operation/validate.rb b/lib/trailblazer/operation/validate.rb index 30a021e..56d0d18 100644 --- a/lib/trailblazer/operation/validate.rb +++ b/lib/trailblazer/operation/validate.rb @@ -22,7 +22,7 @@ def self.Validate(skip_extract: false, name: "default", representer: false, key: options = {task: activity, id: "contract.#{name}.validate", outputs: activity.outputs} # Deviate End.extract_failure to the standard failure track as a default. This can be changed from the user side. - options = options.merge(Activity::DSL.Output(:extract_failure) => Activity::DSL.Track(:failure)) unless skip_extract + options = options.merge(Activity::DSL.Output(:extract_failure) => Activity::DSL.Track(:failure)) unless skip_extract || representer options end