We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae59627 commit 27f4ab5Copy full SHA for 27f4ab5
lib/patch_ruby/models/photo.rb
@@ -65,12 +65,17 @@ def initialize(attributes = {})
65
# @return Array for valid properties with the reasons
66
def list_invalid_properties
67
invalid_properties = Array.new
68
+ if @url.nil?
69
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
70
+ end
71
+
72
invalid_properties
73
end
74
75
# Check to see if the all the properties in the model are valid
76
# @return true if the model is valid
77
def valid?
78
+ return false if @url.nil?
79
true
80
81
0 commit comments