Skip to content

Commit c018dcb

Browse files
authored
Upgrade Core to 243b56e2fa8b91549008b31d2e52596e6d8c941e (#678)
Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
1 parent 07a3e71 commit c018dcb

16 files changed

Lines changed: 360 additions & 79 deletions

File tree

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 1dcbac42809cf87cb5b045106b863e17ad84ba02
2-
core https://github.com/sourcemeta/core 05a5080eb32ceed5bc4dd8593dd163fbda6fde7a
2+
core https://github.com/sourcemeta/core 243b56e2fa8b91549008b31d2e52596e6d8c941e
33
jsonschema-test-suite https://github.com/json-schema-org/JSON-Schema-Test-Suite 06481b143722c8c06671bd40dcde99b422ffd531

src/output/output_standard.cc

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ auto handle_standard(Evaluator &evaluator, const Template &schema,
3434
auto unit{sourcemeta::core::JSON::make_object()};
3535
unit.assign_assume_new(
3636
"keywordLocation",
37-
sourcemeta::core::to_json(annotation.first.evaluate_path));
37+
sourcemeta::core::JSON{
38+
sourcemeta::core::to_string(annotation.first.evaluate_path)});
3839
unit.assign_assume_new(
3940
"absoluteKeywordLocation",
4041
sourcemeta::core::JSON{annotation.first.schema_location});
4142
unit.assign_assume_new(
4243
"instanceLocation",
43-
sourcemeta::core::to_json(annotation.first.instance_location));
44+
sourcemeta::core::JSON{sourcemeta::core::to_string(
45+
annotation.first.instance_location)});
4446

4547
if (tracker != nullptr) {
4648
const auto position{tracker->get(sourcemeta::core::to_pointer(
@@ -67,13 +69,16 @@ auto handle_standard(Evaluator &evaluator, const Template &schema,
6769
auto errors{sourcemeta::core::JSON::make_array()};
6870
for (const auto &entry : output) {
6971
auto unit{sourcemeta::core::JSON::make_object()};
70-
unit.assign_assume_new("keywordLocation",
71-
sourcemeta::core::to_json(entry.evaluate_path));
72+
unit.assign_assume_new(
73+
"keywordLocation",
74+
sourcemeta::core::JSON{
75+
sourcemeta::core::to_string(entry.evaluate_path)});
7276
unit.assign_assume_new("absoluteKeywordLocation",
7377
sourcemeta::core::JSON{entry.schema_location});
7478
unit.assign_assume_new(
7579
"instanceLocation",
76-
sourcemeta::core::to_json(entry.instance_location));
80+
sourcemeta::core::JSON{
81+
sourcemeta::core::to_string(entry.instance_location)});
7782

7883
if (tracker != nullptr) {
7984
const auto position{tracker->get(

test/compiler/compiler_json_test.cc

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ TEST(Compiler_JSON, example_1) {
3838
[
3939
[
4040
11,
41-
"/type",
42-
"",
41+
[ "type" ],
42+
[],
4343
"#/type",
4444
0,
4545
[ 8, 4 ]
@@ -74,24 +74,24 @@ TEST(Compiler_JSON, example_2) {
7474
[
7575
[
7676
61,
77-
"/additionalProperties",
78-
"",
77+
[ "additionalProperties" ],
78+
[],
7979
"#/additionalProperties",
8080
0,
8181
[ 0 ],
8282
[
8383
[
8484
34,
85-
"/multipleOf",
86-
"",
85+
[ "multipleOf" ],
86+
[],
8787
"#/additionalProperties/multipleOf",
8888
0,
8989
[ 1, 2 ]
9090
],
9191
[
9292
10,
93-
"/type",
94-
"",
93+
[ "type" ],
94+
[],
9595
"#/additionalProperties/type",
9696
0,
9797
[ 7, 156 ]
@@ -125,8 +125,8 @@ TEST(Compiler_JSON, example_3) {
125125
[
126126
[
127127
19,
128-
"/pattern",
129-
"",
128+
[ "pattern" ],
129+
[],
130130
"#/pattern",
131131
0,
132132
[ 9, "^f" ]
@@ -163,24 +163,24 @@ TEST(Compiler_JSON, example_4) {
163163
[
164164
[
165165
61,
166-
"/additionalProperties",
167-
"",
166+
[ "additionalProperties" ],
167+
[],
168168
"#/additionalProperties",
169169
1,
170170
[ 0 ],
171171
[
172172
[
173173
34,
174-
"/multipleOf",
175-
"",
174+
[ "multipleOf" ],
175+
[],
176176
"#/multipleOf",
177177
2,
178178
[ 1, 2 ]
179179
],
180180
[
181181
10,
182-
"/type",
183-
"",
182+
[ "type" ],
183+
[],
184184
"#/type",
185185
2,
186186
[ 7, 156 ]
@@ -240,8 +240,8 @@ TEST(Compiler_JSON, example_5) {
240240
[
241241
[
242242
44,
243-
"/foo%",
244-
"",
243+
[ "foo%" ],
244+
[],
245245
"#/foo%25",
246246
1,
247247
[ 1, true ]
@@ -285,24 +285,24 @@ TEST(Compiler_JSON, example_6) {
285285
[
286286
[
287287
61,
288-
"/additionalProperties",
289-
"",
288+
[ "additionalProperties" ],
289+
[],
290290
"#/additionalProperties",
291291
1,
292292
[ 0 ],
293293
[
294294
[
295295
11,
296-
"/type",
297-
"",
296+
[ "type" ],
297+
[],
298298
"#/additionalProperties/type",
299299
1,
300300
[ 8, 4 ]
301301
],
302302
[
303303
46,
304-
"",
305-
"",
304+
[],
305+
[],
306306
"#/additionalProperties",
307307
1,
308308
[ 0 ]

vendor/core/CMakeLists.txt

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

vendor/core/config.cmake.in

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

vendor/core/src/core/ip/CMakeLists.txt

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

vendor/core/src/core/ip/include/sourcemeta/core/ip.h

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

vendor/core/src/core/ip/ipv4.cc

Lines changed: 56 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)