From a7d6925a4849f12972119df8540dbac3b9601828 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 15 Oct 2021 16:55:38 +1100 Subject: [PATCH] chore: load schema by name for publishing contracts --- lib/pact_broker/api/resources/publish_contracts.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/api/resources/publish_contracts.rb b/lib/pact_broker/api/resources/publish_contracts.rb index 64eb723ba..2cf2ee1f3 100644 --- a/lib/pact_broker/api/resources/publish_contracts.rb +++ b/lib/pact_broker/api/resources/publish_contracts.rb @@ -68,7 +68,7 @@ def params end def schema - PactBroker::Api::Contracts::PublishContractsSchema + api_contract_class(:publish_contracts_schema) end def decode_and_parse_content(contract)