Fix Rust codegen for AnyType (#7461)

This commit is contained in:
Aidan Hobson Sayers 2020-09-21 06:36:43 +01:00 committed by GitHub
parent 985c4b36a7
commit be151fca64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -162,6 +162,7 @@ public class RustClientCodegen extends DefaultCodegen implements CodegenConfig {
typeMapping.put("binary", "crate::models::File");
typeMapping.put("ByteArray", "String");
typeMapping.put("object", "serde_json::Value");
typeMapping.put("AnyType", "serde_json::Value");
// no need for rust
//importMapping = new HashMap<String, String>();