Skip to content

Commit

Permalink
Update domain name
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jan 23, 2024
1 parent ce115c4 commit 03b038f
Show file tree
Hide file tree
Showing 50 changed files with 87 additions and 87 deletions.
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ encode any [JSON](https://www.json.org) document given a matching [JSON Schema
***

**This is a work-in-progress. You can watch the repository or [join the
wait-list on the official website](https://www.jsonbinpack.org) to get a
wait-list on the official website](https://jsonbinpack.sourcemeta.com) to get a
notification when the first release is out.**

In the mean-time, star the project to show your support!
Expand All @@ -19,7 +19,7 @@ Documentation
-------------

Refer to the project website for documentation:
[https://www.jsonbinpack.org](https://www.jsonbinpack.org).
[https://jsonbinpack.sourcemeta.com](https://jsonbinpack.sourcemeta.com).

Do you have any questions? Open a ticket on [GitHub
Discussions](https://github.com/sourcemeta/jsonbinpack/discussions)!
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Schemas
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/encoding/v1.json" SCHEMAS_ENCODING_V1_JSON)
# TODO: Can we extract IDs directly from the JSON file instead of hardcoding them here?
set(SCHEMAS_ENCODING_V1_ID "https://www.jsonbinpack.org/schemas/encoding/v1.json")
set(SCHEMAS_ENCODING_V1_ID "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json")

configure_file(schemas.h.in include/jsonbinpack/schemas/schemas.h @ONLY)
add_library(sourcemeta_jsonbinpack_schemas INTERFACE schemas.h.in)
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/encoding/v1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$id": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$vocabulary": {
"https://json-schema.org/draft/2020-12/vocab/core": true
Expand Down
6 changes: 3 additions & 3 deletions test/alterschema/bundle_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static auto
walker_test(const std::string &keyword,
const std::unordered_map<std::string, bool> &vocabularies)
-> sourcemeta::jsontoolkit::schema_walker_strategy_t {
if (vocabularies.contains("https://jsonbinpack.org/vocab/test")) {
if (vocabularies.contains("https://jsonbinpack.sourcemeta.com/vocab/test")) {
if (keyword == "array") {
return sourcemeta::jsontoolkit::schema_walker_strategy_t::Elements;
}
Expand All @@ -149,7 +149,7 @@ TEST(Bundle, alter_nested_document_with_applicators) {
bundle.add<ExampleRule2>();

sourcemeta::jsontoolkit::JSON document{sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://jsonbinpack.org/test-metaschema-1",
"$schema": "https://jsonbinpack.sourcemeta.com/test-metaschema-1",
"array": [
{
"foo": "bar",
Expand Down Expand Up @@ -187,7 +187,7 @@ TEST(Bundle, alter_nested_document_with_applicators) {
bundle.apply(document, "https://json-schema.org/draft/2020-12/schema");

sourcemeta::jsontoolkit::JSON expected{sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://jsonbinpack.org/test-metaschema-1",
"$schema": "https://jsonbinpack.sourcemeta.com/test-metaschema-1",
"array": [
{
"qux": "xxx"
Expand Down
6 changes: 3 additions & 3 deletions test/alterschema/sample_resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ class SampleResolver {
-> std::future<std::optional<sourcemeta::jsontoolkit::JSON>> {
std::promise<std::optional<sourcemeta::jsontoolkit::JSON>> promise;

if (identifier == "https://jsonbinpack.org/test-metaschema-1") {
if (identifier == "https://jsonbinpack.sourcemeta.com/test-metaschema-1") {
promise.set_value(sourcemeta::jsontoolkit::parse(R"JSON({
"$id": "https://jsonbinpack.org/test-metaschema-1",
"$id": "https://jsonbinpack.sourcemeta.com/test-metaschema-1",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$vocabulary": {
"https://json-schema.org/draft/2020-12/vocab/core": true,
"https://jsonbinpack.org/vocab/test": true
"https://jsonbinpack.sourcemeta.com/vocab/test": true
}
})JSON"));
return promise.get_future();
Expand Down
8 changes: 4 additions & 4 deletions test/canonicalizer/canonicalizer_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class TestResolver {
-> std::future<std::optional<sourcemeta::jsontoolkit::JSON>> {
std::promise<std::optional<sourcemeta::jsontoolkit::JSON>> promise;

if (identifier == "https://www.jsonbinpack.org/draft/unknown") {
if (identifier == "https://jsonbinpack.sourcemeta.com/draft/unknown") {
promise.set_value(sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/draft/unknown",
"$id": "https://www.jsonbinpack.org/draft/unknown"
"$schema": "https://jsonbinpack.sourcemeta.com/draft/unknown",
"$id": "https://jsonbinpack.sourcemeta.com/draft/unknown"
})JSON"));
} else {
promise.set_value(std::nullopt);
Expand All @@ -31,7 +31,7 @@ TEST(Canonicalizer, unsupported_draft) {
TestResolver resolver;
sourcemeta::jsonbinpack::Canonicalizer canonicalizer{resolver};
sourcemeta::jsontoolkit::JSON schema{sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/draft/unknown",
"$schema": "https://jsonbinpack.sourcemeta.com/draft/unknown",
"type": "boolean"
})JSON")};

Expand Down
2 changes: 1 addition & 1 deletion test/cli/instance_integer_encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "TOP_LEVEL_BYTE_CHOICE_INDEX",
"options": {
"choices": [ 1, 2, 3 ]
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/circleciblank/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/circlecimatrix/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/commitlint/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/commitlintbasic/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/epr/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/eslintrc/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/esmrc/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/geojson/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/githubfundingblank/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/githubworkflow/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/gruntcontribclean/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/imageoptimizerwebjob/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/jsonereversesort/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/jsonesort/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/jsonfeed/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/jsonresume/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/mixed-bounded-object/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/netcoreproject/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/nightwatch/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/openweathermap/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/openweatherroadrisk/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/ox-test/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/packagejson/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/packagejsonlintrc/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/sapcloudsdkpipeline/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/travisnotifications/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/tslintbasic/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/tslintextend/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
2 changes: 1 addition & 1 deletion test/e2e/tslintmulti/schema-less/encoding.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
}
4 changes: 2 additions & 2 deletions test/mapper/2020_12_mapper_any_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ TEST(MapperAny_2020_12, only_metaschema) {

const sourcemeta::jsontoolkit::JSON expected{
sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
})JSON")};
Expand All @@ -38,7 +38,7 @@ TEST(MapperAny_2020_12, empty) {

const sourcemeta::jsontoolkit::JSON expected{
sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "ANY_PACKED_TYPE_TAG_BYTE_PREFIX",
"options": {}
})JSON")};
Expand Down
6 changes: 3 additions & 3 deletions test/mapper/2020_12_mapper_enum_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TEST(MapperEnum_2020_12, enum_singleton) {

const sourcemeta::jsontoolkit::JSON expected{
sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "CONST_NONE",
"options": {
"value": 2
Expand All @@ -44,7 +44,7 @@ TEST(MapperEnum_2020_12, const_scalar) {

const sourcemeta::jsontoolkit::JSON expected{
sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "CONST_NONE",
"options": {
"value": 2
Expand All @@ -69,7 +69,7 @@ TEST(MapperEnum_2020_12, enum_small_top_level) {

const sourcemeta::jsontoolkit::JSON expected{
sourcemeta::jsontoolkit::parse(R"JSON({
"$schema": "https://www.jsonbinpack.org/schemas/encoding/v1.json",
"$schema": "https://jsonbinpack.sourcemeta.com/schemas/encoding/v1.json",
"name": "TOP_LEVEL_BYTE_CHOICE_INDEX",
"options": {
"choices": [ 1, 2, 3 ]
Expand Down
Loading

0 comments on commit 03b038f

Please sign in to comment.