From 700af259a1e2b472ff5ce313414209916852c9b7 Mon Sep 17 00:00:00 2001 From: Pierre Rioux Date: Tue, 8 Oct 2024 12:45:41 -0400 Subject: [PATCH] Added final newline character in two templates The two mustache templates for Ruby models were not properly terminated with a newline character, causing the generated Ruby code to be syntactically incorrect. Code generate before this fix: code code endend Code generated after this fix: code code end end --- .../src/main/resources/ruby/partial_model_enum_class.mustache | 2 +- .../src/main/resources/ruby/partial_model_generic.mustache | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/ruby/partial_model_enum_class.mustache b/modules/swagger-codegen/src/main/resources/ruby/partial_model_enum_class.mustache index 36cee9e7948..661c314fb25 100644 --- a/modules/swagger-codegen/src/main/resources/ruby/partial_model_enum_class.mustache +++ b/modules/swagger-codegen/src/main/resources/ruby/partial_model_enum_class.mustache @@ -10,4 +10,4 @@ raise "Invalid ENUM value #{value} for class #{{{classname}}}" if constantValues.empty? value end - end \ No newline at end of file + end diff --git a/modules/swagger-codegen/src/main/resources/ruby/partial_model_generic.mustache b/modules/swagger-codegen/src/main/resources/ruby/partial_model_generic.mustache index 6302db5303f..723bc459042 100644 --- a/modules/swagger-codegen/src/main/resources/ruby/partial_model_generic.mustache +++ b/modules/swagger-codegen/src/main/resources/ruby/partial_model_generic.mustache @@ -276,4 +276,4 @@ end {{> base_object}} - end \ No newline at end of file + end