Skip to content

Commit 1e8d660

Browse files
Bug [Bean Validation]: Compilation error with array of strings with validations (#926) (#1004)
* bug: bean validation missing import with array and mandatory items * fix: add Jakarta Bean validation imports to model.qute Co-authored-by: Jochen Schalanda <[email protected]>
1 parent 19cd8e1 commit 1e8d660

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

client/deployment/src/main/resources/templates/libraries/microprofile/model.qute

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package {package};
22

33
{#if use-bean-validation}
44
{! https://github.com/OpenAPITools/openapi-generator/issues/18974 !}
5+
import jakarta.validation.constraints.*;
56
import jakarta.validation.Valid;
67
{/if}
78

client/integration-tests/bean-validation/src/main/openapi/bean-validation-true.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,9 @@ components:
6464
size:
6565
type: number
6666
minimum: 1.0
67-
maximum: 10.0
67+
maximum: 10.0
68+
list:
69+
type: array
70+
items:
71+
type: string
72+
minLength: 1

0 commit comments

Comments
 (0)