File tree Expand file tree Collapse file tree 6 files changed +14
-14
lines changed
swagger-integration/src/main
java/io/swagger/oas/integration
swagger-jaxrs2/src/main/java/io/swagger/jaxrs2/integration Expand file tree Collapse file tree 6 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -329,8 +329,8 @@ private OpenAPIConfiguration mergeParentConfiguration (OpenAPIConfiguration conf
329
329
if (merged .isPrettyPrint () == null ) {
330
330
merged .setPrettyPrint (parentConfig .isPrettyPrint ());
331
331
}
332
- if (merged .isScanAllResources () == null ) {
333
- merged .setScanAllResources (parentConfig .isScanAllResources ());
332
+ if (merged .isReadAllResources () == null ) {
333
+ merged .setReadAllResources (parentConfig .isReadAllResources ());
334
334
}
335
335
return merged ;
336
336
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class SwaggerConfiguration implements OpenAPIConfiguration {
20
20
private String scannerClass ;
21
21
22
22
private Boolean prettyPrint ;
23
- private Boolean scanAllResources ;
23
+ private Boolean readAllResources ;
24
24
private Collection <String > ignoredRoutes ;
25
25
private Long cacheTTL = -1L ;
26
26
@@ -37,16 +37,16 @@ public SwaggerConfiguration cacheTTL(Long cacheTTL) {
37
37
return this ;
38
38
}
39
39
40
- public Boolean isScanAllResources () {
41
- return scanAllResources ;
40
+ public Boolean isReadAllResources () {
41
+ return readAllResources ;
42
42
}
43
43
44
- public void setScanAllResources (Boolean scanAllResources ) {
45
- this .scanAllResources = scanAllResources ;
44
+ public void setReadAllResources (Boolean readAllResources ) {
45
+ this .readAllResources = readAllResources ;
46
46
}
47
47
48
- public SwaggerConfiguration scanAllResources (Boolean scanAllResources ) {
49
- this .scanAllResources = scanAllResources ;
48
+ public SwaggerConfiguration readAllResources (Boolean readAllResources ) {
49
+ this .readAllResources = readAllResources ;
50
50
return this ;
51
51
}
52
52
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public interface OpenAPIConfiguration {
23
23
24
24
Map <String , Object > getUserDefinedOptions ();
25
25
26
- Boolean isScanAllResources ();
26
+ Boolean isReadAllResources ();
27
27
28
28
Boolean isPrettyPrint ();
29
29
Original file line number Diff line number Diff line change 1
1
Manifest-Version : 1.0
2
- Bnd-LastModified : 1501658827414
2
+ Bnd-LastModified : 1501660651909
3
3
Build-Jdk : 1.8.0_72
4
4
Built-By : frantuma
5
5
Bundle-Description : Sonatype helps open source projects to set up Maven
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public class ServletConfigContextUtils {
19
19
public static final String OPENAPI_CONFIGURATION_SCANNER_KEY = "openApi.configuration.scannerClass" ;
20
20
public static final String OPENAPI_CONFIGURATION_BUILDER_KEY = "openApi.configuration.builderClass" ;
21
21
public static final String OPENAPI_CONFIGURATION_PRETTYPRINT_KEY = "openApi.configuration.prettyPrint" ;
22
- public static final String OPENAPI_CONFIGURATION_SCANALLRESOURCES_KEY = "openApi.configuration.scanAllResources " ;
22
+ public static final String OPENAPI_CONFIGURATION_READALLRESOURCES_KEY = "openApi.configuration.readAllResources " ;
23
23
public static final String OPENAPI_CONFIGURATION_RESOURCECLASSES_KEY = "openApi.configuration.resourceClasses" ;
24
24
public static final String OPENAPI_CONFIGURATION_FILTER_KEY = "openApi.configuration.filterClass" ;
25
25
public static final String OPENAPI_CONFIGURATION_CACHE_TTL_KEY = "openApi.configuration.filterClass" ;
Original file line number Diff line number Diff line change 17
17
import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_FILTER_KEY ;
18
18
import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_PRETTYPRINT_KEY ;
19
19
import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_READER_KEY ;
20
- import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_SCANALLRESOURCES_KEY ;
20
+ import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_READALLRESOURCES_KEY ;
21
21
import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_SCANNER_KEY ;
22
22
import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .OPENAPI_CONFIGURATION_BUILDER_KEY ;
23
23
import static io .swagger .jaxrs2 .integration .ServletConfigContextUtils .getBooleanInitParam ;
@@ -49,7 +49,7 @@ public OpenAPIConfiguration load(String path) throws IOException {
49
49
.resourcePackages (resolveResourcePackages (servletConfig ))
50
50
.filterClass (getInitParam (servletConfig , OPENAPI_CONFIGURATION_FILTER_KEY ))
51
51
.resourceClasses (resolveResourceClasses (servletConfig ))
52
- .scanAllResources (getBooleanInitParam (servletConfig , OPENAPI_CONFIGURATION_SCANALLRESOURCES_KEY ))
52
+ .readAllResources (getBooleanInitParam (servletConfig , OPENAPI_CONFIGURATION_READALLRESOURCES_KEY ))
53
53
.prettyPrint (getBooleanInitParam (servletConfig , OPENAPI_CONFIGURATION_PRETTYPRINT_KEY ))
54
54
.readerClass (getInitParam (servletConfig , OPENAPI_CONFIGURATION_READER_KEY ))
55
55
.cacheTTL (getLongInitParam (servletConfig , OPENAPI_CONFIGURATION_CACHE_TTL_KEY ))
You can’t perform that action at this time.
0 commit comments