Skip to content

Commit

Permalink
Upgrade Core to 47ba2307b9bfab9fb378386207b3172c97ed1363 (#875)
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti authored Jan 30, 2025
1 parent 8863c4c commit 5fb659a
Show file tree
Hide file tree
Showing 30 changed files with 291 additions and 203 deletions.
2 changes: 1 addition & 1 deletion DEPENDENCIES
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vendorpull https://github.com/sourcemeta/vendorpull 70342aaf458e6cb80baeb5b718901075fc42ede6
core https://github.com/sourcemeta/core 1257bcddc2797de7c95dedefebf6c2fb1e00717a
core https://github.com/sourcemeta/core 47ba2307b9bfab9fb378386207b3172c97ed1363
bootstrap https://github.com/twbs/bootstrap 1a6fdfae6be09b09eaced8f0e442ca6f7680a61e
4 changes: 2 additions & 2 deletions src/compiler/include/sourcemeta/jsonbinpack/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace sourcemeta::jsonbinpack {
///
/// sourcemeta::jsonbinpack::compile(
/// schema, sourcemeta::core::schema_official_walker,
/// sourcemeta::core::official_resolver);
/// sourcemeta::core::schema_official_resolver);
///
/// sourcemeta::core::prettify(schema, std::cout);
/// std::cout << std::endl;
Expand Down Expand Up @@ -74,7 +74,7 @@ auto compile(sourcemeta::core::JSON &schema,
///
/// sourcemeta::jsonbinpack::canonicalize(
/// schema, sourcemeta::core::schema_official_walker,
/// sourcemeta::core::official_resolver);
/// sourcemeta::core::schema_official_resolver);
///
/// sourcemeta::core::prettify(schema, std::cout);
/// std::cout << std::endl;
Expand Down
28 changes: 14 additions & 14 deletions test/compiler/2020_12_canonicalizer_any_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, if_without_then_else_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -35,7 +35,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, then_else_without_if_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -59,7 +59,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, duplicate_allof_branches_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -84,7 +84,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, duplicate_allof_branches_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -116,7 +116,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, duplicate_allof_branches_3) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -141,7 +141,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, duplicate_anyof_branches_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -166,7 +166,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, duplicate_anyof_branches_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -198,7 +198,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, duplicate_anyof_branches_3) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -219,7 +219,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, type_union_anyof_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -248,7 +248,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, type_union_anyof_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -282,7 +282,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, type_union_anyof_3) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -315,7 +315,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, implicit_type_union_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -354,7 +354,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, boolean_schema_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver,
sourcemeta::core::schema_official_resolver,
"https://json-schema.org/draft/2020-12/schema");

const auto expected = sourcemeta::core::parse_json(R"JSON({
Expand Down Expand Up @@ -393,7 +393,7 @@ TEST(JSONBinPack_Canonicalizer_Any_2020_12, boolean_schema_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver,
sourcemeta::core::schema_official_resolver,
"https://json-schema.org/draft/2020-12/schema");

const sourcemeta::core::JSON expected{false};
Expand Down
14 changes: 7 additions & 7 deletions test/compiler/2020_12_canonicalizer_array_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, max_contains_without_contains_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -34,7 +34,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, max_contains_without_contains_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -59,7 +59,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, min_contains_without_contains_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -80,7 +80,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, min_contains_without_contains_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -107,7 +107,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, unsatisfiable_max_contains_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -132,7 +132,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, implicit_array_lower_bound_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -153,7 +153,7 @@ TEST(JSONBinPack_Canonicalizer_Array_2020_12, drop_non_array_keywords_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down
8 changes: 4 additions & 4 deletions test/compiler/2020_12_canonicalizer_boolean_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TEST(JSONBinPack_Canonicalizer_Boolean_2020_12, type_boolean) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -32,7 +32,7 @@ TEST(JSONBinPack_Canonicalizer_Boolean_2020_12, drop_non_boolean_keywords_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -52,7 +52,7 @@ TEST(JSONBinPack_Canonicalizer_Boolean_2020_12, drop_non_boolean_keywords_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -71,7 +71,7 @@ TEST(JSONBinPack_Canonicalizer_Boolean_2020_12, drop_non_boolean_keywords_3) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down
4 changes: 2 additions & 2 deletions test/compiler/2020_12_canonicalizer_null_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEST(JSONBinPack_Canonicalizer_Null_2020_12, drop_non_null_keywords_1) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -34,7 +34,7 @@ TEST(JSONBinPack_Canonicalizer_Null_2020_12, drop_non_null_keywords_2) {

sourcemeta::jsonbinpack::canonicalize(
schema, sourcemeta::core::schema_official_walker,
sourcemeta::core::official_resolver);
sourcemeta::core::schema_official_resolver);

const auto expected = sourcemeta::core::parse_json(R"JSON({
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down
Loading

0 comments on commit 5fb659a

Please sign in to comment.