Skip to content

Commit 148661a

Browse files
author
bnasslahsen
committed
pathsToMatch and packagesToScan only work in spinal-case. Fixes #338
1 parent 98372c5 commit 148661a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public final class Constants {
1818
public static final String SPRINGDOC_SWAGGER_UI_CONFIG_URL_VALUE ="${" + SPRINGDOC_SWAGGER_UI_CONFIG_URL + ":#{null}}";
1919
public static final String SPRINGDOC_SHOW_ACTUATOR = "springdoc.show-actuator";
2020
public static final String SPRINGDOC_SHOW_ACTUATOR_VALUE = "${" + SPRINGDOC_SHOW_ACTUATOR + ":false}";
21-
public static final String SPRINGDOC_PACKAGES_TO_SCAN = "${springdoc.packagesToScan:#{null}}";
22-
public static final String SPRINGDOC_PATHS_TO_MATCH = "${springdoc.pathsToMatch:#{null}}";
21+
public static final String SPRINGDOC_PACKAGES_TO_SCAN = "${springdoc.packages-to-scan:#{null}}";
22+
public static final String SPRINGDOC_PATHS_TO_MATCH = "${springdoc.paths-to-match:#{null}}";
2323
public static final String SPRINGDOC_ACTUATOR_TAG = "Actuator";
2424
public static final String DEFAULT_WEB_JARS_PREFIX_URL = "/webjars";
2525
public static final String WEB_JARS_PREFIX_URL = "${springdoc.webjars.prefix:#{T(org.springdoc.core.Constants).DEFAULT_WEB_JARS_PREFIX_URL}}";

springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app64/SpringDocApp64Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ public class SpringDocApp64Test extends AbstractSpringDocTest {
88

99
@BeforeClass
1010
public static void beforeClass() {
11-
System.setProperty("springdoc.pathsToMatch", "/v1, /api/**");
11+
System.setProperty("springdoc.paths-to-match", "/v1, /api/**");
1212
}
1313

1414
@AfterClass
1515
public static void afterClass() {
16-
System.clearProperty("springdoc.pathsToMatch");
16+
System.clearProperty("springdoc.paths-to-match");
1717
}
1818
}

0 commit comments

Comments
 (0)