You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2018/01/25 08:02:01 UTC

[2/2] syncope git commit: [SYNCOPE-1262] Since the proposed https://github.com/swagger-api/swagger-js/pull/1218 could not get accepted, let's go back to local patch for Swagger UI

[SYNCOPE-1262] Since the proposed https://github.com/swagger-api/swagger-js/pull/1218 could not get accepted, let's go back to local patch for Swagger UI


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/046c354b
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/046c354b
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/046c354b

Branch: refs/heads/master
Commit: 046c354bd61f9889d7e59b71e0fe550d428e6ed3
Parents: 079f655
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Thu Jan 25 09:01:25 2018 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Thu Jan 25 09:01:47 2018 +0100

----------------------------------------------------------------------
 ext/swagger-ui/pom.xml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/046c354b/ext/swagger-ui/pom.xml
----------------------------------------------------------------------
diff --git a/ext/swagger-ui/pom.xml b/ext/swagger-ui/pom.xml
index 47344a1..62248f6 100644
--- a/ext/swagger-ui/pom.xml
+++ b/ext/swagger-ui/pom.xml
@@ -122,6 +122,28 @@ under the License.
           
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <inherited>true</inherited>
+        <executions>
+          <execution>
+            <id>addMatrixParamSupport</id>
+            <phase>process-resources</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <target>
+                <replace file="${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}/swagger-ui-bundle.js"
+                         token="function i(e){var t=e.req,n=e.value,r=e.parameter,i=r.name,o=r.style,a=r.explode,s=(0,h.default)({key:r.name,value:n,style:o||&quot;simple&quot;,explode:a||!1,escape:!1});t.url=t.url.replace(&quot;{&quot;+i+&quot;}&quot;,s)}"
+                         value="function i(e){var t=e.req,r=e.value,n=e.parameter,a=n.name,u=n.style,o=n.explode,i=(0,h.default)({key:n.name,value:r,style:u||&quot;simple&quot;,explode:o||!1,escape:&quot;matrix&quot;===u});&quot;matrix&quot;!==u||!n.explode&amp;&amp;void 0!==n.explode?t.url=t.url.replace(&quot;{&quot;+a+&quot;}&quot;,i):t.url=t.url.concat(i)}"/>
+              </target>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
       </plugin>
     </plugins>