You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2018/09/04 03:00:23 UTC

[cxf] branch 3.2.x-fixes updated: Add openapi.json & openapi.yaml to skipped paths (#441)

This is an automated email from the ASF dual-hosted git repository.

reta pushed a commit to branch 3.2.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.2.x-fixes by this push:
     new cf35b79  Add openapi.json & openapi.yaml to skipped paths (#441)
cf35b79 is described below

commit cf35b79589a87fe6512504d0e4d49251895fe5da
Author: PK Søreide <pe...@gmail.com>
AuthorDate: Tue Sep 4 04:58:01 2018 +0200

    Add openapi.json & openapi.yaml to skipped paths (#441)
    
    Signed-off-by: PK Søreide <pe...@gmail.com>
---
 .../src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
index 5e26dc9..3061e8d 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/impl/RequestPreprocessor.java
@@ -56,6 +56,8 @@ public class RequestPreprocessor {
         PATHS_TO_SKIP = new HashSet<>();
         PATHS_TO_SKIP.add("swagger.json");
         PATHS_TO_SKIP.add("swagger.yaml");
+        PATHS_TO_SKIP.add("openapi.json");
+        PATHS_TO_SKIP.add("openapi.yaml");
     }
 
     private Map<Object, Object> languageMappings;