schema = @Schema(types = {"integer"})
You can work around the issue by using "types" instead of "type".
It seems to be a bug with swagger core 3.1. Here and here are two GitHub issues related to the problem.