juneau-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Bognar (Jira)" <j...@apache.org>
Subject [jira] [Created] (JUNEAU-180) Incorrect Swagger on Spring Boot methods that return Collections of beans.
Date Mon, 20 Jan 2020 19:26:00 GMT
James Bognar created JUNEAU-180:
-----------------------------------

             Summary: Incorrect Swagger on Spring Boot methods that return Collections of
beans.
                 Key: JUNEAU-180
                 URL: https://issues.apache.org/jira/browse/JUNEAU-180
             Project: Juneau
          Issue Type: Improvement
          Components: Code
    Affects Versions: 8.1.3
            Reporter: James Bognar
            Assignee: James Bognar


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() \{...}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message