Description
If your REST class is running in Spring Boot and it's annotated with @Secured, Spring Boot will create a proxied instance of the class using CGLIB which loses generic type information. Therefore the schema information in the generated swagger for a method that returns something like the following will show up as just a collection of strings:
@RestMethod
public Collection<MyBean> getBeans() {...}