Skip to content

Commit 83f9d59

Browse files
author
bnasslahsen
committed
Added the ability to use fully qualified name.
1 parent 9d591da commit 83f9d59

File tree

7 files changed

+31
-386
lines changed

7 files changed

+31
-386
lines changed

gradle.properties

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
group = org.springdoc
22
version = 1.4.4-SNAPSHOT
3-
org.gradle.caching=true
43
org.gradle.parallel=true

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import java.util.stream.Collectors;
3535
import java.util.stream.Stream;
3636

37+
import io.swagger.v3.core.jackson.TypeNameResolver;
3738
import io.swagger.v3.core.util.AnnotationsUtils;
3839
import io.swagger.v3.oas.annotations.Hidden;
3940
import io.swagger.v3.oas.annotations.OpenAPIDefinition;
@@ -163,6 +164,8 @@ public class OpenAPIBuilder {
163164
this.securityParser = securityParser;
164165
this.springDocConfigProperties = springDocConfigProperties;
165166
this.openApiBuilderCustomisers = openApiBuilderCustomisers;
167+
if(springDocConfigProperties.isUseFqn())
168+
TypeNameResolver.std.setUseFqn(true);
166169
}
167170

168171
/**

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,29 @@ public class SpringDocConfigProperties {
120120
*/
121121
private String defaultProducesMediaType = MediaType.ALL_VALUE;
122122

123+
/**
124+
* Use fully qualified name
125+
*/
126+
private boolean useFqn;
127+
128+
/**
129+
* Is use fqn boolean.
130+
*
131+
* @return the boolean
132+
*/
133+
public boolean isUseFqn() {
134+
return useFqn;
135+
}
136+
137+
/**
138+
* Sets use fqn.
139+
*
140+
* @param useFqn the use fqn
141+
*/
142+
public void setUseFqn(boolean useFqn) {
143+
this.useFqn = useFqn;
144+
}
145+
123146
/**
124147
* Is auto tag classes boolean.
125148
*

0 commit comments

Comments
 (0)