add anytype support to c# generators (#7599)

This commit is contained in:
William Cheng 2020-10-05 20:58:51 +08:00 committed by GitHub
parent 0e1d131076
commit 8c17a01bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
typeMapping.put("object", "Object"); typeMapping.put("object", "Object");
typeMapping.put("UUID", "Guid?"); typeMapping.put("UUID", "Guid?");
typeMapping.put("URI", "string"); typeMapping.put("URI", "string");
typeMapping.put("AnyType", "Object");
// nullable type // nullable type
nullableType = new HashSet<String>( nullableType = new HashSet<String>(