summaryrefslogtreecommitdiffstats
path: root/a1-policy-management/src
diff options
context:
space:
mode:
Diffstat (limited to 'a1-policy-management/src')
-rw-r--r--a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/SwaggerConfig.java4
1 files changed, 2 insertions, 2 deletions
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();
}