File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/org/everit/json/schema
test/java/org/everit/json/schema Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class NumberSchemaValidatingVisitor extends Visitor {
81
81
@ Override void visitExclusiveMaximumLimit (Number exclusiveMaximumLimit ) {
82
82
if (exclusiveMaximumLimit != null ) {
83
83
if (numberSubject >= exclusiveMaximumLimit .doubleValue ()) {
84
- owner .failure (format ( " is not less than " + exclusiveMaximumLimit ) , "exclusiveMaximum" );
84
+ owner .failure (subject + " is not less than " + exclusiveMaximumLimit , "exclusiveMaximum" );
85
85
}
86
86
}
87
87
}
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public void minimumFailure() {
77
77
public void exclusiveMinimumLimit () {
78
78
TestSupport .failureOf (NumberSchema .builder ().exclusiveMinimum (10 ))
79
79
.expectedKeyword ("exclusiveMinimum" )
80
- .expectedMessageFragment ("is not greater than 10" )
80
+ .expectedMessageFragment ("10 is not greater than 10" )
81
81
.input (10 )
82
82
.expect ();
83
83
}
@@ -86,7 +86,7 @@ public void exclusiveMinimumLimit() {
86
86
public void exclusiveMaximumLimit () {
87
87
TestSupport .failureOf (NumberSchema .builder ().exclusiveMaximum (10 ))
88
88
.expectedKeyword ("exclusiveMaximum" )
89
- .expectedMessageFragment ("is not less than 10" )
89
+ .expectedMessageFragment ("10 is not less than 10" )
90
90
.input (10 )
91
91
.expect ();
92
92
}
You can’t perform that action at this time.
0 commit comments