Hi,

I have one issue with Template type class return scenario. I am using 
swagger-jaxrs2-2.0.0-rc2 version for document json generation and 
swagger-ui-v3.3.1 for UI.  below is the explanation.

Example:
Class property method return Template type.
Class A{
    B b;
}
Class IssueTemplate<T>{}
Class B{
public IssueTemplate<Ret> getTest(){};
}

Request body :

@Path("/test")
@Secured
@Produces(APPLICATION_JSON)
@Consumes(APPLICATION_JSON)
@Operation(tags="/receiver/rest")

public void test1( A a) {
}

Generated openapi.json :

"components" : {
    "schemas" : {

      "B":{

          "properties" :{

              "test":: {

                     "$ref" : "#/components/schemas/IssueTemplateRet"
                }}}

      "IssueTemplate":{

       }

   }

}


So here issue : TemplateTyped Class return type Ref path created with 
concatenation of TemaplateType class and Template class. Here "IssueTemplate" 
and "Ret". Due to this UI is throwing error.



Regards,

provash




-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to