From adc181bc87bd2c6f33f530ddd1e4cfe55ada7ba3 Mon Sep 17 00:00:00 2001 From: Killianven Date: Fri, 19 Jun 2026 17:45:40 +0200 Subject: [PATCH] Fix enum generation Previous version cause the enum variable wrote with a jump. So the project won't compile ex : myEnum RawValue The solution write it well myEnumRawValue --- .../csharp/libraries/generichost/JsonConverter.mustache | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache index d8e203b3f1ee..facf150a424c 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache @@ -537,9 +537,7 @@ {{/isNullable}} {{/isInnerEnum}} {{^isInnerEnum}} - {{#lambda.copyText}} - {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}} - {{/lambda.copyText}} + {{#lambda.copyText}}{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}{{/lambda.copyText}} {{#required}} {{#isNullable}} if ({{#lambda.camelcase_sanitize_param}}{{classname}}{{/lambda.camelcase_sanitize_param}}.{{name}} == null) @@ -663,4 +661,4 @@ {{/lambda.trimLineBreaks}} {{/lambda.trimTrailingWithNewLine}} } - } \ No newline at end of file + }