This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 564540827e Replace codegen usage of deprecated Swagger Schema.required
attribute with Schema.requiredMode
564540827e is described below
commit 564540827ef33bb48a4d7195ba1632329e7495c3
Author: James Netherton <[email protected]>
AuthorDate: Tue Mar 4 10:37:59 2025 +0000
Replace codegen usage of deprecated Swagger Schema.required attribute with
Schema.requiredMode
---
.../deployment/src/main/resources/handlebars/Quarkus/pojo.mustache | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/extensions/rest-openapi/deployment/src/main/resources/handlebars/Quarkus/pojo.mustache
b/extensions/rest-openapi/deployment/src/main/resources/handlebars/Quarkus/pojo.mustache
index 2944857ff6..458264a7e8 100644
---
a/extensions/rest-openapi/deployment/src/main/resources/handlebars/Quarkus/pojo.mustache
+++
b/extensions/rest-openapi/deployment/src/main/resources/handlebars/Quarkus/pojo.mustache
@@ -163,7 +163,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}
{{/parent}}{{#parcela
@ApiModelProperty({{#example}}example = "{{{example}}}",
{{/example}}{{#required}}required = {{required}}, {{/required}}value =
"{{{description}}}")
{{/useOas2}}
{{^useOas2}}
- @Schema({{#example}}example = "{{{example}}}",
{{/example}}{{#required}}required = {{required}}, {{/required}}description =
"{{{description}}}")
+ @Schema({{#example}}example = "{{{example}}}", {{/example}}requiredMode =
{{#required}}Schema.RequiredMode.REQUIRED{{/required}}{{^required}}Schema.RequiredMode.NOT_REQUIRED{{/required}},
description = "{{{description}}}")
{{/useOas2}}
{{#vendorExtensions.extraAnnotation}}
{{{vendorExtensions.extraAnnotation}}}