lib/svix/models/message_out.rb in svix-1.32.0 vs lib/svix/models/message_out.rb in svix-1.33.0

- old
+ new

@@ -123,12 +123,12 @@ # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new - if !@channels.nil? && @channels.length > 5 - invalid_properties.push('invalid value for "channels", number of items must be less than or equal to 5.') + if !@channels.nil? && @channels.length > 10 + invalid_properties.push('invalid value for "channels", number of items must be less than or equal to 10.') end if !@channels.nil? && @channels.length < 1 invalid_properties.push('invalid value for "channels", number of items must be greater than or equal to 1.') end @@ -175,11 +175,11 @@ end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if !@channels.nil? && @channels.length > 5 + return false if !@channels.nil? && @channels.length > 10 return false if !@channels.nil? && @channels.length < 1 return false if !@event_id.nil? && @event_id.to_s.length > 256 return false if !@event_id.nil? && @event_id.to_s.length < 1 return false if !@event_id.nil? && @event_id !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/) return false if @event_type.nil? @@ -192,11 +192,11 @@ end # Custom attribute writer method with validation # @param [Object] channels Value to be assigned def channels=(channels) - if !channels.nil? && channels.length > 5 - fail ArgumentError, 'invalid value for "channels", number of items must be less than or equal to 5.' + if !channels.nil? && channels.length > 10 + fail ArgumentError, 'invalid value for "channels", number of items must be less than or equal to 10.' end if !channels.nil? && channels.length < 1 fail ArgumentError, 'invalid value for "channels", number of items must be greater than or equal to 1.' end