Open dpalmmna opened 1 year ago
Yes, I have the same problem in 7.1.0.
@dpalmmna have you found any workaround?
Thank you very much
@jorgerod @dpalmmna
I am facing a different issue now with 7.4.0
version.
In the generated code import for @Valid
is not added.
Example:
public RestMeshByAcqR meshes(List<@Valid package.commons.api.model.RestMesh> meshes) { this.meshes = meshes; return this; }
If I have any generated code like above with List<@Valid xyxxx>
I am getting @Valid symbol doesn't found
error during the compile phase.
The import jakarta.validation.Valid
is not getting added in the generated code.
Description
The use of importMapping no longer works with v6.5.0 spring generator. The generated code uses List<@Valid Tag> where Tag is absolute reference to a class. This is not compatible with the @Valid annotation.
openapi-generator version
v6.5.0 worked in v6.4.0
OpenAPI declaration file content or url
Jakarta validation does not accept private
List<@Valid package.commons.api.model.RestMesh> meshes;
Generation Details
Steps to reproduce
Related issues/PRs
Introduced by issue #14959
Suggest a fix