Skip to content

Commit c0beb60

Browse files
authored
Upgrade Core to 3a031c0e140bfbd562e5b169fcbe250d0ae9d660 (#477)
Signed-off-by: Juan Cruz Viotti <[email protected]>
1 parent c28e4aa commit c0beb60

File tree

376 files changed

+101998
-169
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

376 files changed

+101998
-169
lines changed

DEPENDENCIES

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
vendorpull https://github.com/sourcemeta/vendorpull dea311b5bfb53b6926a4140267959ae334d3ecf4
2-
core https://github.com/sourcemeta/core 64cd14e9dc99f76ca686adcdc75b8a5f97808694
2+
core https://github.com/sourcemeta/core 3a031c0e140bfbd562e5b169fcbe250d0ae9d660
33
jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite 48461fc3568972801b40eaccc428a31bce338f6e

cmake/FindCore.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ if(NOT Core_FOUND)
55
set(SOURCEMETA_CORE_INSTALL OFF CACHE BOOL "disable installation")
66
endif()
77

8-
set(SOURCEMETA_CORE_YAML OFF CACHE BOOL "disable YAML support")
8+
set(SOURCEMETA_CORE_TIME OFF CACHE BOOL "disable")
9+
set(SOURCEMETA_CORE_UUID OFF CACHE BOOL "disable")
10+
set(SOURCEMETA_CORE_GZIP OFF CACHE BOOL "disable")
11+
set(SOURCEMETA_CORE_MD5 OFF CACHE BOOL "disable")
12+
set(SOURCEMETA_CORE_YAML OFF CACHE BOOL "disable")
13+
set(SOURCEMETA_CORE_CONTRIB_ZLIB OFF CACHE BOOL "disable")
14+
set(SOURCEMETA_CORE_CONTRIB_BEARSSL OFF CACHE BOOL "disable")
15+
916
set(SOURCEMETA_CORE_CONTRIB_GOOGLETEST ${BLAZE_TESTS} CACHE BOOL "GoogleTest")
1017
set(SOURCEMETA_CORE_CONTRIB_GOOGLEBENCHMARK ${BLAZE_BENCHMARK} CACHE BOOL "GoogleBenchmark")
1118
add_subdirectory("${PROJECT_SOURCE_DIR}/vendor/core")

src/compiler/compile_output_standard.cc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ auto standard(Evaluator &evaluator, const Template &schema,
2525
auto annotations{sourcemeta::core::JSON::make_array()};
2626
for (const auto &annotation : output.annotations()) {
2727
auto unit{sourcemeta::core::JSON::make_object()};
28-
unit.assign(
29-
"keywordLocation",
30-
sourcemeta::core::to_json(annotation.first.evaluate_path).value());
28+
unit.assign("keywordLocation",
29+
sourcemeta::core::to_json(annotation.first.evaluate_path));
3130
unit.assign("absoluteKeywordLocation",
3231
sourcemeta::core::JSON{annotation.first.schema_location});
33-
unit.assign("instanceLocation", sourcemeta::core::to_json(
34-
annotation.first.instance_location)
35-
.value());
32+
unit.assign(
33+
"instanceLocation",
34+
sourcemeta::core::to_json(annotation.first.instance_location));
3635
unit.assign("annotation", sourcemeta::core::to_json(annotation.second));
3736
annotations.push_back(std::move(unit));
3837
}
@@ -49,11 +48,11 @@ auto standard(Evaluator &evaluator, const Template &schema,
4948
for (const auto &entry : output) {
5049
auto unit{sourcemeta::core::JSON::make_object()};
5150
unit.assign("keywordLocation",
52-
sourcemeta::core::to_json(entry.evaluate_path).value());
51+
sourcemeta::core::to_json(entry.evaluate_path));
5352
unit.assign("absoluteKeywordLocation",
5453
sourcemeta::core::JSON{entry.schema_location});
5554
unit.assign("instanceLocation",
56-
sourcemeta::core::to_json(entry.instance_location).value());
55+
sourcemeta::core::to_json(entry.instance_location));
5756
unit.assign("error", sourcemeta::core::JSON{entry.message});
5857
errors.push_back(std::move(unit));
5958
}

vendor/core/CMakeLists.txt

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)