Skip to content

Commit be151fc

Browse files
authored
Fix Rust codegen for AnyType (#7461)
1 parent 985c4b3 commit be151fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ public RustClientCodegen() {
162162
typeMapping.put("binary", "crate::models::File");
163163
typeMapping.put("ByteArray", "String");
164164
typeMapping.put("object", "serde_json::Value");
165+
typeMapping.put("AnyType", "serde_json::Value");
165166

166167
// no need for rust
167168
//importMapping = new HashMap<String, String>();

0 commit comments

Comments
 (0)