Skip to content

Commit

Permalink
Merge pull request #56 from emils-ozolins/improve-less-than-message
Browse files Browse the repository at this point in the history
Replace lesser with less than in error messages
  • Loading branch information
harrel56 authored Sep 14, 2023
2 parents 378c001 + 9f25f0b commit 2964b51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/dev/harrel/jsonschema/Evaluators.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public Result evaluate(EvaluationContext ctx, JsonNode node) {
if (node.asNumber().compareTo(min) >= 0) {
return Result.success();
} else {
return Result.failure(String.format("%s is lesser than %s", node.asNumber(), min));
return Result.failure(String.format("%s is less than %s", node.asNumber(), min));
}
}
}
Expand All @@ -194,7 +194,7 @@ public Result evaluate(EvaluationContext ctx, JsonNode node) {
if (node.asNumber().compareTo(min) > 0) {
return Result.success();
} else {
return Result.failure(String.format("%s is lesser or equal to %s", node.asNumber(), min));
return Result.failure(String.format("%s is less than or equal to %s", node.asNumber(), min));
}
}
}
Expand Down

0 comments on commit 2964b51

Please sign in to comment.