diff --git a/DEPENDENCIES b/DEPENDENCIES index 20342efaf..e2b28f5c4 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -1,7 +1,7 @@ vendorpull https://github.com/sourcemeta/vendorpull 1dcbac42809cf87cb5b045106b863e17ad84ba02 uwebsockets https://github.com/uNetworking/uWebSockets v20.78.0 core https://github.com/sourcemeta/core 5d187a796444fef1b5e044c659800085a4be7ef4 -blaze https://github.com/sourcemeta/blaze 9ca83f191a263eef070fdfc0ecb3e6ab974a4747 +blaze https://github.com/sourcemeta/blaze 3c2ddb90f26eb50821442f54c5db88276ab9a558 bootstrap https://github.com/twbs/bootstrap v5.3.3 bootstrap-icons https://github.com/twbs/icons v1.11.3 collections/sourcemeta/std/v0 https://github.com/sourcemeta/std v0.4.0 diff --git a/test/cli/index/common/fail-vocabulary-not-object.sh b/test/cli/index/common/fail-vocabulary-not-object.sh index bd7e69d4a..8b6431df5 100755 --- a/test/cli/index/common/fail-vocabulary-not-object.sh +++ b/test/cli/index/common/fail-vocabulary-not-object.sh @@ -42,7 +42,7 @@ cat << 'EOF' > "$TMP/schemas/test.json" EOF -"$1" --skip-banner --deterministic "$TMP/one.json" "$TMP/output" --concurrency 1 > "$TMP/output.txt" && CODE="$?" || CODE="$?" +"$1" --skip-banner "$TMP/one.json" "$TMP/output" > "$TMP/output.txt" && CODE="$?" || CODE="$?" test "$CODE" = "1" || exit 1 cat << EOF > "$TMP/expected.txt" diff --git a/vendor/blaze/src/foundation/foundation.cc b/vendor/blaze/src/foundation/foundation.cc index e93b713e6..438ffba3c 100644 --- a/vendor/blaze/src/foundation/foundation.cc +++ b/vendor/blaze/src/foundation/foundation.cc @@ -512,10 +512,16 @@ auto sourcemeta::blaze::parse_vocabularies( return std::nullopt; } - assert(vocabulary_entry->is_object()); + if (!vocabulary_entry->is_object()) { + return std::nullopt; + } + sourcemeta::blaze::Vocabularies result; for (const auto &entry : vocabulary_entry->as_object()) { - assert(entry.second.is_boolean()); + if (!entry.second.is_boolean()) { + return std::nullopt; + } + result.insert(entry.first, entry.second.to_boolean()); }