cancel
Showing results for 
Search instead for 
Did you mean: 

Swagger - parameter not showing in Swagger-UI

Highlighted
Frequent Visitor

Swagger - parameter not showing in Swagger-UI

Hello, I have a SpringBoot Application(2.2.2) with swagger-UI (3.0.0) and have a controller class where I defined a @RequestParam, which is not showing in the UI. There is also an ERROR-message showing up.

 

It could be that swagger does not support the Class-Parameter?

 

This is my method:

 

public FrontendResponse<KnowledgeModelResponse<I>> getSubtypes(
@RequestParam("parent") Optional<Class<I>> parent){
return new FrontendResponse<KnowledgeModelResponse<I>>(kmr);
and this is the ERROR-message:

Resolver error at paths./knowledge/types.get.responses.200.schema.properties.dataResponse.items.properties.subClasses.items.$refCould not resolve reference: #/definitions/Error-ModelName{namespace='java.lang', name='Class«Individual»'}
 
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors