You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ResponseEntity<String> getFoo(
@Pattern( regexp = "^[a-zA-Z0-9_-]*$" ) @Size( max = 120 )
@ApiParam( value = "The filename of the Aspect Model input file." ) @Valid@RequestParam( value = "filename", required = false ) Optional<String> filename );
Steps to reproduce
Use bean validation with optionals
Suggest a fix
Generate valid code. The constraints have to be included in the Optional tag
ResponseEntity<String> getFoo(
@ApiParam( value = "The filename of the Aspect Model input file." ) @Valid@RequestParam( value = "filename", required = false ) Optional< @Pattern( regexp = "^[a-zA-Z0-9_-]*$" ) @Size( max = 120 )String> filename );
`
The text was updated successfully, but these errors were encountered:
Bug Report Checklist
Description
Invalid code for the type Optional with Bean Validation is generated.
openapi-generator version
5.0.1
OpenAPI declaration file content or url
If you post the code inline, please wrap it with
Generation Details
Maven plugin
Steps to reproduce
Use bean validation with optionals
Suggest a fix
Generate valid code. The constraints have to be included in the Optional tag
The text was updated successfully, but these errors were encountered: