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 cef1bec commit a8eed9cCopy full SHA for a8eed9c
1 file changed
modules/openapi-generator/src/main/resources/ruby-client/base_object.mustache
@@ -22,7 +22,9 @@
22
end
23
elsif !attributes[self.class.attribute_map[key]].nil?
24
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
25
- end # or else data not found in attributes(hash), not an issue as the data can be optional
+ elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
26
+ self.send("#{key}=", nil)
27
+ end
28
29
30
self
0 commit comments