[BUG] NotNull annotation is not set for requiered body in jaxrs-cxf
Created by: acommuni
Bug Report Checklist
- [X ] Have you provided a full/minimal spec to reproduce the issue?
-
Have you validated the input using an OpenAPI validator (example)? - [X ] What's the version of OpenAPI Generator used?
- [X ] Have you search for related issues/PRs?
- [X ] What's the actual output vs expected output?
-
[Optional] Bounty to sponsor the fix (example)
Description
When validation is activated with jaxrs-cxf and a body is requiered the annotation @NotNull is not set
openapi-generator version
4.1.3
OpenAPI declaration file content or url
<language>jaxrs-cxf</language>
<generateApis>true</generateApis>
<generateApiTests>false</generateApiTests>
<generateModels>true</generateModels>
<generateSupportingFiles>false</generateSupportingFiles>
<addCompileSourceRoot>true</addCompileSourceRoot>
<configOptions>
<serializableModel>true</serializableModel>
<sourceFolder>src/main/java</sourceFolder>
<dateLibrary>java8</dateLibrary><java8>true</java8>
<invokerPackage>${package-path}.invoker</invokerPackage>
<modelPackage>${package-path}.model</modelPackage>
<apiPackage>${package-path}.api</apiPackage>
<serializableModel>true</serializableModel>
<useBeanValidation>true</useBeanValidation>
<useReflectionEqualsHashCode>true</useReflectionEqualsHashCode>
<useGenericResponse>true</useGenericResponse>
<booleanGetterPrefix>get</booleanGetterPrefix>
<addConsumesProducesJson>false</addConsumesProducesJson>
<useAnnotatedBasePath>true</useAnnotatedBasePath>
</configOptions>
</configuration>
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix
You will find the new mustasche for bodyParams