This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
new 7e2945e [CXF-7525] Fixing enum support
7e2945e is described below
commit 7e2945ecf552075cb52460e9eb62da7f673a4f49
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Mon Jan 8 11:50:43 2018 +0100
[CXF-7525] Fixing enum support
---
.../cxf/jaxrs/swagger/openapi/SwaggerToOpenApiConversionUtils.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/openapi/SwaggerToOpenApiConversionUtils.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/openapi/SwaggerToOpenApiConversionUtils.java
index e3ebb39..ee45fbb 100644
---
a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/openapi/SwaggerToOpenApiConversionUtils.java
+++
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/openapi/SwaggerToOpenApiConversionUtils.java
@@ -261,6 +261,12 @@ public final class SwaggerToOpenApiConversionUtils {
schema.setProperty("items", items);
sw2PathVerbParamMap.setProperty("schema", schema);
} else {
+ if
("matrix".equals(sw2PathVerbParamMap.getStringProperty("in"))) {
+ sw2PathVerbParamMap.removeProperty("in");
+ sw2PathVerbParamMap.setProperty("in", "path");
+ sw2PathVerbParamMap.setProperty("style", "matrix");
+ }
+
String type =
(String)sw2PathVerbParamMap.removeProperty("type");
Object enumK = sw2PathVerbParamMap.removeProperty("enum");
if (type != null) {
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].