Sha256: fd3afb71d8acebb949f230ff5b7b90596bceb39492867fe8d463e9c834db7bbe

Contents?: true

Size: 461 Bytes

Versions: 99

Compression:

Stored size: 461 Bytes

Contents

module PactBroker
  module Api

    module Resources

      module WebhookResourceMethods

        def malformed_webhook_request? webhook
          begin
            if (errors = webhook.validate).any?
              set_json_validation_error_messages errors
              return true
            end
          rescue
            set_json_error_message 'Invalid JSON'
            return true
          end
          false
        end
      end

    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
pact_broker-2.9.0.beta.5 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.7.0.beta.2 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.7.0.beta.1 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.6.0 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.5.1 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.5.0 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.4.2 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.4.1 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.4.0 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.3.0 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.2.0 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.1.1 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.1.0 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.0.5 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.0.4 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.0.3 lib/pact_broker/api/resources/webhook_resource_methods.rb
pact_broker-2.0.2 lib/pact_broker/api/resources/webhook_resource_methods.rb