diff --git a/lib/channelengine_channel_api_client_ruby/models/channel_product_extra_data_item_response.rb b/lib/channelengine_channel_api_client_ruby/models/channel_product_extra_data_item_response.rb index 5227c9c..72704ba 100644 --- a/lib/channelengine_channel_api_client_ruby/models/channel_product_extra_data_item_response.rb +++ b/lib/channelengine_channel_api_client_ruby/models/channel_product_extra_data_item_response.rb @@ -136,8 +136,8 @@ def key=(key) # Custom attribute writer method with validation # @param [Object] value Value to be assigned def value=(value) - if !value.nil? && value.to_s.length > -1 - fail ArgumentError, 'invalid value for "value", the character length must be smaller than or equal to -1.' + if !value.nil? && value.to_s.length < -1 + fail ArgumentError, 'invalid value for "value", the character length must be bigger than -1.' end @value = value