Hey Provash, thanks for reporting this. Issue should be fixed in https://github.com/swagger-api/swagger-core/pull/2483 and part of next RC. With the fix, concatenated name is used as defined key in components.schemas and is therefore correctly referenced.
Il giorno venerdì 13 ottobre 2017 15:59:10 UTC+2, Provash Dowari ha scritto: > > 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 swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.