Sha256: b11b38bfdc1bd662bf96c6901239d46eb79df5d79726468cb0a70034c82011db
Contents?: true
Size: 598 Bytes
Versions: 20
Compression:
Stored size: 598 Bytes
Contents
require 'reform' require 'reform/contract' require 'pact_broker/api/contracts/request_validations' module PactBroker module Api module Contracts class WebhookContract < Reform::Contract property :request validates :request, presence: true property :request do include RequestValidations property :url property :http_method validates :url, presence: true validates :http_method, presence: true validate :method_is_valid validate :url_is_valid end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems