Sha256: 1a6be77cb00578b34946ec505b1f1a2bc138978b6d80be02c8489519fea32649
Contents?: true
Size: 656 Bytes
Versions: 160
Compression:
Stored size: 656 Bytes
Contents
module PactBroker module Api module Contracts module PacticipantNameValidation include PactBroker::Messages def name_in_pact_present unless name_in_pact errors.add(:'name', validation_message('pact_missing_pacticipant_name', pacticipant: pacticipant)) end end def name_not_blank if blank? name errors.add(:'name', validation_message('blank')) end end def blank? string string && string.strip.empty? end def empty? string string.nil? || blank?(string) end end end end end
Version data entries
160 entries across 160 versions & 1 rubygems