Skip to content

Commit 8e4b0f2

Browse files
committed
fix(crystal): call #to_h instead of #to_hash
1 parent e54c645 commit 8e4b0f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/openapi-generator/src/main/resources/crystal/partial_model_generic.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@
213213
{{#-first}}
214214
_any_of_found = false
215215
self.class.openapi_any_of.each do |_class|
216-
_any_of = {{moduleName}}.const_get(_class).build_from_hash(self.to_hash)
216+
_any_of = {{moduleName}}.const_get(_class).build_from_hash(self.to_h)
217217
if _any_of.valid?
218218
_any_of_found = true
219219
end

0 commit comments

Comments
 (0)