lib/cheminee/models/schema.rb in cheminee-0.1.12 vs lib/cheminee/models/schema.rb in cheminee-0.1.14

- old
+ new

@@ -4,11 +4,11 @@ #Cheminée: The Chemical Structure Search Engine The version of the OpenAPI document: 1.0 Generated by: https://openapi-generator.tech -OpenAPI Generator version: 7.1.0-SNAPSHOT +OpenAPI Generator version: 7.3.0-SNAPSHOT =end require 'date' require 'time' @@ -176,10 +176,10 @@ end end else # model # models (e.g. Pet) or oneOf klass = Cheminee.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end # Returns the string representation of the object # @return [String] String presentation of the object