Skip to content

Commit 8db2531

Browse files
author
bnasslahsen
committed
project review
1 parent 1fc8879 commit 8db2531

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/GenericResponseBuilder.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.springframework.web.method.HandlerMethod;
5454

5555
import static org.springdoc.core.Constants.DEFAULT_DESCRIPTION;
56-
import static org.springdoc.core.converters.ConverterUtils.isResponseTypeToIgnore;
5756

5857
@SuppressWarnings("rawtypes")
5958
public class GenericResponseBuilder {
@@ -265,11 +264,7 @@ public Schema calculateSchema(Components components, Type returnType, JsonView j
265264
// if void, no content
266265
return null;
267266
}
268-
Schema schemaN = SpringDocAnnotationsUtils.extractSchema(components, returnType, jsonView);
269-
if (schemaN == null && returnType instanceof Class && !isResponseTypeToIgnore((Class) returnType)) {
270-
schemaN = AnnotationsUtils.resolveSchemaFromType((Class) returnType, null, jsonView);
271-
}
272-
return schemaN;
267+
return SpringDocAnnotationsUtils.extractSchema(components, returnType, jsonView);
273268
}
274269

275270
private void setContent(String[] methodProduces, Content content,

0 commit comments

Comments
 (0)