christeiwan
5 years agoRegular 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);
@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»'}
This seems to be related to external Spring tooling (I would assume springfox or springdoc-openapi), please report the issue there