Skip to content

Commit

Permalink
Ruby - Adding warning instead of Validation failure when unknown prop…
Browse files Browse the repository at this point in the history
…erty found on object. (Azure#1263)
  • Loading branch information
vishrutshah authored Jul 13, 2016
1 parent d8ef424 commit 62173d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/Ruby/ms-rest/lib/ms_rest/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def serialize_composite_type(mapper, object, object_name)
begin
instance_variable = object.instance_variable_get("@#{key}")
rescue NameError
fail ValidationError, "instance variable '#{key}' is expected on '#{object.class}'."
warn("Instance variable '#{key}' is expected on '#{object.class}'.")
end

if !instance_variable.nil? && instance_variable.respond_to?(:validate)
Expand Down

0 comments on commit 62173d1

Please sign in to comment.