package json-schema-validator-i18n-support in fizz-common (#135)

This commit is contained in:
zhong-jie
2021-04-21 09:43:46 +08:00
committed by GitHub
parent 69625440dd
commit 24168d6b35
10 changed files with 166 additions and 34 deletions

View File

@@ -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>

View File

@@ -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)) {