lib/docspring/models/move_template_data.rb in docspring-1.3.1 vs lib/docspring/models/move_template_data.rb in docspring-1.3.2

- old
+ new

@@ -45,15 +45,20 @@ # 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 @parent_folder_id.nil? + invalid_properties.push('invalid value for "parent_folder_id", parent_folder_id cannot be nil.') + end + invalid_properties 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 @parent_folder_id.nil? true end # Checks equality by comparing each attribute. # @param [Object] Object to be compared