lib/open_api/schema.rb in open_api-0.2.0 vs lib/open_api/schema.rb in open_api-0.3.0

- old
+ new

@@ -11,11 +11,11 @@ self.write_only = write_only self.xml = xml self.external_docs = external_docs self.example = example self.deprecated = deprecated - self.other_fields_hash = other_fields_hash.symbolize_keys + self.other_fields_hash = other_fields_hash other_fields_hash.keys.each { |name| new_field(name) } end def method_missing(mid, *args) @@ -52,10 +52,10 @@ value = case k.to_sym when :items then v.serializable_hash when :properties then v.map { |k, v| [k.to_s, v.serializable_hash] }.to_h else - v + v.to_s end [k.to_s, value] }.to_h {