{{!--
Handle bean validation violations.

@param responseBuilderVar the name of the local variable holding the ResponseBuilder object
@param violationsVar the name of the local variable holding the ConstraintViolation set
@param operation the CodegenOperation
--}}
return {{responseBuilderVar}}
	.status({{javax}}.ws.rs.core.Response.Status.BAD_REQUEST)
	.type({{javax}}.ws.rs.core.MediaType.TEXT_PLAIN_TYPE)
	.entity(__validations.stream()
		.map(__v -> __v.getPropertyPath() + " " + __v.getMessage())
		.collect(java.util.stream.Collectors.joining("\n")))
	.build();
