Skip to content

Commit 0b9f781

Browse files
Update of yml schema error msg
1 parent 1e79219 commit 0b9f781

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

external/json-schema-validator.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ index e6aff61..fa90bc0 100644
1616
include(CMakePackageConfigHelpers)
1717
write_basic_package_version_file(
1818
diff --git a/src/json-validator.cpp b/src/json-validator.cpp
19-
index 0beb613..7a344a3 100644
19+
index 0beb613..0a9122b 100644
2020
--- a/src/json-validator.cpp
2121
+++ b/src/json-validator.cpp
2222
@@ -218,12 +218,16 @@ public:
@@ -51,6 +51,15 @@ index 0beb613..7a344a3 100644
5151
}
5252

5353
// specialized for each of the logical_combination_types
54+
@@ -423,7 +427,7 @@ template <>
55+
bool logical_combination<allOf>::is_validate_complete(const json &, const json::json_pointer &, error_handler &e, const first_error_handler &esub, size_t)
56+
{
57+
if (esub)
58+
- e.error(esub.ptr_, esub.instance_, "at least one subschema has failed, but all of them are required to validate - " + esub.message_);
59+
+ e.error(esub.ptr_, esub.instance_, "schema check failed, verify syntax");
60+
return esub;
61+
}
62+
5463
@@ -576,6 +580,32 @@ public:
5564
attr = sch.find("enum");
5665
if (attr != sch.end()) {

0 commit comments

Comments
 (0)