lib/swaggy_jenkins/models/user.rb in swaggy_jenkins-1.5.0 vs lib/swaggy_jenkins/models/user.rb in swaggy_jenkins-2.0.0
- old
+ new
@@ -1,14 +1,14 @@
=begin
#Swaggy Jenkins
#Jenkins API clients generated from Swagger / Open API specification
-The version of the OpenAPI document: 1.5.0
+The version of the OpenAPI document: 2.0.0
Contact: blah@cliffano.com
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 5.4.0
+OpenAPI Generator version: 6.0.0
=end
require 'date'
require 'time'
@@ -141,9 +141,10 @@
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)
+ attributes = attributes.transform_keys(&:to_sym)
self.class.openapi_types.each_pair do |key, type|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
self.send("#{key}=", nil)
elsif type =~ /\AArray<(.*)>/i
# check to ensure the input is an array given that the attribute