From 4897d102bd8561ae2771f0bb879a2ded036d0761 Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Fri, 11 Jun 2021 13:43:09 +1000 Subject: [PATCH] Fix exclusiveMaximum and exclusiveMinimum error messages --- include/valijson/schema_parser.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/valijson/schema_parser.hpp b/include/valijson/schema_parser.hpp index 9980927..908cd18 100644 --- a/include/valijson/schema_parser.hpp +++ b/include/valijson/schema_parser.hpp @@ -1631,7 +1631,7 @@ private: constraints::MaximumConstraint makeMaximumConstraintExclusive(const AdapterType &node) { if (!node.maybeDouble()) { - throwRuntimeError("Expected numeric value for maximum constraint."); + throwRuntimeError("Expected numeric value for exclusiveMaximum constraint."); } constraints::MaximumConstraint constraint; @@ -1763,7 +1763,7 @@ private: constraints::MinimumConstraint makeMinimumConstraintExclusive(const AdapterType &node) { if (!node.maybeDouble()) { - throwRuntimeError("Expected numeric value for minimum constraint."); + throwRuntimeError("Expected numeric value for exclusiveMinimum constraint."); } constraints::MinimumConstraint constraint;