Skip to content

Commit

Permalink
fix: make parameter type of ToEnum extension methods dynamic (#2064)
Browse files Browse the repository at this point in the history
Make parameter type of ToEnum extension methods dynamic.

Co-authored-by: Jens Spitaels <Jens.Spitaels@alsic.be>
Co-authored-by: asyncapi-bot <bot+chan@asyncapi.io>
  • Loading branch information
3 people authored Aug 13, 2024
1 parent faf4673 commit b188a3a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/generators/csharp/renderers/EnumRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ return null;`;
${this.indent(enumValueSwitch)}
}
public static ${this.model.name}? To${this.model.name}(${
this.model.type
}? value)
public static ${this.model.name}? To${this.model.name}(dynamic? value)
{
${this.indent(valueSwitch)}
}`;
Expand Down

0 comments on commit b188a3a

Please sign in to comment.