Skip to content

Commit f02b920

Browse files
authored
Merge pull request #16 from NickSchimek/catalog_item_update_desc_validation
Update length validation for CatalogItem#description
2 parents 9a72bac + a08df4f commit f02b920

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/connectwise-ruby-sdk/models/catalog_item.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,8 @@ def list_invalid_properties
284284
invalid_properties.push("invalid value for 'description', description cannot be nil.")
285285
end
286286

287-
if @description.to_s.length > 50
288-
invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 50.")
287+
if @description.to_s.length > 60
288+
invalid_properties.push("invalid value for 'description', the character length must be smaller than or equal to 60.")
289289
end
290290

291291
if @subcategory.nil?
@@ -325,7 +325,7 @@ def valid?
325325
return false if @identifier.nil?
326326
return false if @identifier.to_s.length > 60
327327
return false if @description.nil?
328-
return false if @description.to_s.length > 50
328+
return false if @description.to_s.length > 60
329329
return false if @subcategory.nil?
330330
return false if @type.nil?
331331
product_class_validator = EnumAttributeValidator.new('String', ["Agreement", "Bundle", "Inventory", "NonInventory", "Service"])
@@ -361,8 +361,8 @@ def description=(description)
361361
fail ArgumentError, "description cannot be nil"
362362
end
363363

364-
if description.to_s.length > 50
365-
fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 50."
364+
if description.to_s.length > 60
365+
fail ArgumentError, "invalid value for 'description', the character length must be smaller than or equal to 60."
366366
end
367367

368368
@description = description

0 commit comments

Comments
 (0)