From af8b92a313a05ec57e809086646ed59ac95d0704 Mon Sep 17 00:00:00 2001 From: Gleb Ivashyn Date: Tue, 2 Jan 2024 21:05:02 +0200 Subject: [PATCH] bugfix proposition | Changes in the api.mustache file --- pom.xml | 3 ++- src/main/resources/templates/api.mustache | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index d26fa03..b79ed22 100644 --- a/pom.xml +++ b/pom.xml @@ -99,13 +99,14 @@ - generate-without-template + generate-with-template generate-sources generate src/main/resources/openapi.yaml + src/main/resources/templates diff --git a/src/main/resources/templates/api.mustache b/src/main/resources/templates/api.mustache index 71af750..a314c50 100644 --- a/src/main/resources/templates/api.mustache +++ b/src/main/resources/templates/api.mustache @@ -173,7 +173,7 @@ public interface {{classname}} { {{#produces}} @Content(mediaType = "{{{mediaType}}}", {{#isArray}}array = @ArraySchema({{/isArray}}schema = @Schema(implementation = {{{baseType}}}.class){{#isArray}}){{/isArray}}){{^-last}},{{/-last}} {{/produces}} - }{{/baseType}}){{^-last}},{{/-last}} + }{{/baseType}}{{^baseType}}, content = @Content{{/baseType}}){{^-last}},{{/-last}} {{/responses}} }{{#hasAuthMethods}}, security = {