[csharp-netcore] Fix keys of the enum reference map (#13242)

This commit is contained in:
Kazuhiro Fujieda 2022-08-24 02:46:30 +09:00 committed by GitHub
parent 9afcbabcd8
commit b5fe7d02b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,7 +493,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
for (Map.Entry<String, ModelsMap> entry : models.entrySet()) {
CodegenModel model = ModelUtils.getModelByName(entry.getKey(), models);
if (model.isEnum) {
enumRefs.put(entry.getKey(), model);
enumRefs.put(model.getClassname(), model);
}
}