#### Bug Report Checklist ##### Description The defaults applied in https://github.com/OpenAPITools/openapi-generator/pull/15689 are wrong regarding to useBeanValidation. Spring declares that Http Interface annotations can also be used server-side. https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-service-client On the server side, an @Controller class can implement the same interface to handle requests with [@HttpExchange](https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-controller/ann-requestmapping.html#mvc-ann-httpexchange-annotation) controller methods. ##### openapi-generator version 7.0.0 ##### OpenAPI declaration file content or url <!-- if it is a bug, a json or yaml that produces it. If you post the code inline, please wrap it with ```yaml (here your code) ``` (for YAML code) or ```json (here your code) ``` (for JSON code), so it becomes more readable. If it is longer than about ten lines, please create a Gist (https://gist.github.com) or upload it somewhere else and link it here. --> ##### Generation Details <!-- Prefer CLI steps, including the language, libraries and various options. Providing config-based settings allows for simpler testing across CLI and plugins. For examples, see https://github.com/OpenAPITools/openapi-generator/tree/master/bin/configs --> ##### Steps to reproduce ```xml <generator>spring</generatorName> <library>spring-http-interface</library> <configOptions> <useBeanValidation>true</useBeanValidation> <configOptions> ``` This option is not respected ##### Related issues/PRs ##### Suggest a fix * useBeanValidation is forced to false in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java#L387 * https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache doesn't import {{javaxPackage}}.validation.constraints.*
Bug Report Checklist
Description
The defaults applied in #15689 are wrong regarding to useBeanValidation. Spring declares that Http Interface annotations can also be used server-side.
https://docs.spring.io/spring-framework/reference/integration/rest-clients.html#rest-http-service-client
On the server side, an @controller class can implement the same interface to handle requests with @HttpExchange controller methods.
openapi-generator version
7.0.0
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
This option is not respected
Related issues/PRs
Suggest a fix
useBeanValidation is forced to false in https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringCodegen.java#L387
https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-http-interface/api.mustache doesn't import {{javaxPackage}}.validation.constraints.*