Skip to content

Commit a8b0279

Browse files
author
bnasslahsen
committed
Merge branch 'nathankooij-master'
2 parents 31a7cd3 + 6e4b1e8 commit a8b0279

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

Diff for: springdoc-openapi-common/src/main/java/org/springdoc/core/SpringDocAnnotationsUtils.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,7 @@ public class SpringDocAnnotationsUtils extends AnnotationsUtils {
4242

4343
public static Schema resolveSchemaFromType(Class<?> schemaImplementation, Components components,
4444
JsonView jsonView) {
45-
Schema schemaObject;
46-
PrimitiveType primitiveType = PrimitiveType.fromType(schemaImplementation);
47-
if (primitiveType != null) {
48-
schemaObject = primitiveType.createProperty();
49-
}
50-
else {
51-
schemaObject = extractSchema(components, schemaImplementation, jsonView);
52-
}
45+
Schema schemaObject = extractSchema(components, schemaImplementation, jsonView);
5346
if (schemaObject != null && StringUtils.isBlank(schemaObject.get$ref())
5447
&& StringUtils.isBlank(schemaObject.getType())) {
5548
// default to string
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
spring:
22
main:
3-
allow-bean-definition-overriding: true
43
banner-mode: "off"

Diff for: springdoc-openapi-webflux-core/src/test/resources/application-test.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
spring:
22
main:
3-
allow-bean-definition-overriding: true
43
banner-mode: "off"
54
logging:
65
level:

0 commit comments

Comments
 (0)