Showing results for 
Search instead for 
Did you mean: 

Swagger - parameter not showing in Swagger-UI

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/$refCould not resolve reference: #/definitions/Error-ModelName{namespace='java.lang', name='Class«Individual»'}
New Here?
Join us and watch the welcome video:
Top Kudoed Authors