package json-schema-validator-i18n-support in fizz-common (#135)
This commit is contained in:
@@ -20,13 +20,18 @@
|
||||
<groupId>com.networknt</groupId>
|
||||
<artifactId>json-schema-validator-i18n-support</artifactId>
|
||||
<version>1.0.39_4</version>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/../lib/json-schema-validator-i18n-support-1.0.39_4.jar</systemPath>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fizzgate</groupId>
|
||||
<artifactId>fizz-common</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>com.networknt</groupId>
|
||||
<artifactId>json-schema-validator-i18n-support</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@@ -259,4 +264,10 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>repo</id>
|
||||
<url>file://${project.basedir}/repo</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
</project>
|
||||
@@ -89,7 +89,11 @@ public class Pipeline {
|
||||
}
|
||||
|
||||
long t1 = System.currentTimeMillis();
|
||||
List<String> validateErrorList = inputValidate(input, clientInput);
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
List<String> validateErrorList = inputValidate(input,
|
||||
(Map<String, Object>)((Map<String, Object>)this.stepContext.get("input")).get("request"));
|
||||
|
||||
this.stepContext.addElapsedTime("入参校验", System.currentTimeMillis()-t1);
|
||||
|
||||
if (!CollectionUtils.isEmpty(validateErrorList)) {
|
||||
|
||||
Reference in New Issue
Block a user