Skip to content

Commit 0102edf

Browse files
committed
fix(crystal): map object type to JSON::Any type
1 parent 6f01c8b commit 0102edf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/CrystalClientCodegen.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public CrystalClientCodegen() {
183183
typeMapping.put("List", "Array");
184184
typeMapping.put("set", "Set");
185185
typeMapping.put("map", "Hash");
186-
typeMapping.put("object", "Object");
187-
typeMapping.put("AnyType", "Object");
186+
typeMapping.put("object", "JSON::Any");
187+
typeMapping.put("AnyType", "JSON::Any");
188188
typeMapping.put("file", "::File");
189189
typeMapping.put("binary", "String");
190190
typeMapping.put("ByteArray", "String");

0 commit comments

Comments
 (0)