Partly solves https://github.com/martypitt/swagger-springmvc/issues/67.