File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
core/src/test/java/org/everit/json/schema/loader Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ class JavascriptFormatValidator implements FormatValidator {
482
482
try {
483
483
Boolean result = (Boolean ) javaScriptEngine. eval(script);
484
484
if (! result) {
485
- return Optional . of(String . format(" the length of string [%s] is greater than 5" , subject));
485
+ return Optional . of(String . format(" the length of string [%s] is not equal 5" , subject));
486
486
}
487
487
} catch (ScriptException e) {
488
488
e. printStackTrace();
Original file line number Diff line number Diff line change @@ -851,7 +851,7 @@ public Optional<String> validate(String subject) {
851
851
try {
852
852
Boolean result = (Boolean ) javaScriptEngine .eval (script );
853
853
if (!result ) {
854
- return Optional .of (String .format ("the length of string [%s] is greater than 5" , subject ));
854
+ return Optional .of (String .format ("the length of string [%s] is not equal 5" , subject ));
855
855
}
856
856
} catch (ScriptException e ) {
857
857
e .printStackTrace ();
You can’t perform that action at this time.
0 commit comments