From b84b02d615b728160f7c42d60689a722505b4c04 Mon Sep 17 00:00:00 2001 From: Nikita Dementev Date: Tue, 11 Jul 2023 19:31:19 +0600 Subject: [PATCH] Fix index parameter in Attachments API (#1387) --- odd-platform-api-contract/templates/formParams.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odd-platform-api-contract/templates/formParams.mustache b/odd-platform-api-contract/templates/formParams.mustache index ba178fabb..f8217e349 100644 --- a/odd-platform-api-contract/templates/formParams.mustache +++ b/odd-platform-api-contract/templates/formParams.mustache @@ -1,4 +1,4 @@ {{#isFormParam}} - {{^isFile}}{{>paramDoc}}{{#useBeanValidation}} @Valid{{/useBeanValidation}} {{#isModel}}@RequestPart{{/isModel}}{{^isModel}}{{#isArray}}@RequestPart{{/isArray}}{{^isArray}}@RequestParam{{/isArray}}{{/isModel}}(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}){{>dateTimeParam}} {{{dataType}}} {{paramName}}{{/isFile}} + {{^isFile}}{{>paramDoc}}{{#useBeanValidation}} @Valid{{/useBeanValidation}} {{#isModel}}@RequestPart{{/isModel}}{{^isModel}}{{#isArray}}@RequestPart{{/isArray}}{{^isArray}}@RequestPart{{/isArray}}{{/isModel}}(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}){{>dateTimeParam}} {{{dataType}}} {{paramName}}{{/isFile}} {{#isFile}}{{>paramDoc}} @RequestPart(value = "{{baseName}}"{{#required}}, required = true{{/required}}{{^required}}, required = false{{/required}}) {{#reactive}}{{#isArray}}Flux{{/isArray}}{{^isArray}}Mono{{/isArray}}{{/reactive}}{{^reactive}}{{#isArray}}List<{{/isArray}}MultipartFile{{#isArray}}>{{/isArray}}{{/reactive}} {{paramName}}{{/isFile}} {{/isFormParam}} \ No newline at end of file