summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--a1-policy-management/pom.xml2
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/a1-policy-management/pom.xml b/a1-policy-management/pom.xml
index cdb1bdbd..d1f74dd8 100644
--- a/a1-policy-management/pom.xml
+++ b/a1-policy-management/pom.xml
@@ -35,7 +35,7 @@
<properties>
<java.version.source>11</java.version.source>
<java.version.target>11</java.version.target>
- <springfox.version>2.9.2</springfox.version>
+ <springfox.version>3.0.0</springfox.version>
<!-- Do not change to version 3.0.0! Will break the generated json. -->
<immutable.version>2.8.8</immutable.version>
<sdk.version>1.1.6</sdk.version>
diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java
index 61c03ba8..1197cc35 100644
--- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java
+++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java
@@ -82,9 +82,9 @@ public class SwaggerConfig extends WebMvcConfigurationSupport {
.select() //
.apis(RequestHandlerSelectors.any()) //
.paths(PathSelectors.any()) //
- .paths(Predicates.not(PathSelectors.regex("/error"))) //
+ .paths(PathSelectors.regex("/error").negate()) //
// this endpoint is not implemented, but was visible for Swagger
- .paths(Predicates.not(PathSelectors.regex("/actuator.*"))) //
+ .paths(PathSelectors.regex("/actuator.*").negate()) //
// this endpoint is implemented by spring framework, exclude for now
.build();
}