[4947][java]: adds support for validation of primitives in arrays (#17165)

* [4947][java]: adds support for validation of primitives in arrays

* [4947][java]: prevents generation '@Valid' for Object

* [4947][java]: test against different codegens and stick to primitive

* [4947][java]: code review

* [4947][java]: enhance getBeanValidation

* [4947][java]: adds email

* [4947][java]: removes unnecessary override

* [4947][java]: adds postProcessResponseWithProperty

* [4947][java]: adds missing import {{javaxPackage}}.validation.Valid

* [4947][java]: adds missing useBeanValidation

* [4947][java]: fix use rootJavaEEPackage for helidon
This commit is contained in:
Aliaksei
2023-12-11 13:55:38 +01:00
committed by GitHub
parent d4d5196907
commit 809b3331a9
575 changed files with 1982 additions and 843 deletions

View File

@@ -101,7 +101,7 @@ public interface UserApi {
)
default ResponseEntity<Void> createUsersWithArrayInput(
@Parameter(name = "User", description = "List of user object", required = true) @Valid @RequestBody List<User> user
@Parameter(name = "User", description = "List of user object", required = true) @Valid @RequestBody List<@Valid User> user
) {
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
@@ -134,7 +134,7 @@ public interface UserApi {
)
default ResponseEntity<Void> createUsersWithListInput(
@Parameter(name = "User", description = "List of user object", required = true) @Valid @RequestBody List<User> user
@Parameter(name = "User", description = "List of user object", required = true) @Valid @RequestBody List<@Valid User> user
) {
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);