diff --git a/lib/pact_broker/api/resources/index.rb b/lib/pact_broker/api/resources/index.rb index 78fe477de..0b16a853e 100644 --- a/lib/pact_broker/api/resources/index.rb +++ b/lib/pact_broker/api/resources/index.rb @@ -144,6 +144,11 @@ def links }] } + if PactBroker.feature_enabled?(:disable_pacts_for_verification) + links_hash.delete('pb:provider-pacts-for-verification') + links_hash.delete('beta:provider-pacts-for-verification') + end + links_hash end