Skip to content

Commit

Permalink
refs #550 - fix random enum failure in csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
frantuma committed Dec 13, 2019
1 parent 653630d commit 06795a5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ private void postProcessEnumRefs(final Map<String, Object> models) {
// This is different in C# than most other generators, because enums in C# are compiled to integral types,
// while enums in many other languages are true objects.
CodegenModel refModel = enumRefs.get(var.datatype);
var.allowableValues = refModel.allowableValues;
var.allowableValues = new HashMap<>(refModel.allowableValues);
updateCodegenPropertyEnum(var);

// We do these after updateCodegenPropertyEnum to avoid generalities that don't mesh with C#.
Expand Down

0 comments on commit 06795a5

Please sign in to comment.