From 20b46151e10c88bc8e47dd6382618c03e7236305 Mon Sep 17 00:00:00 2001 From: Daniel Chambers Date: Wed, 23 Oct 2024 18:31:54 +1100 Subject: [PATCH] Bump NDC Spec version in the json schema (#1261) ### What The supported NDC Spec was previously bumped to v0.1.6, but the reference in the JSON Schema was not updated at the same time. This has been corrected. V3_GIT_ORIGIN_REV_ID: edbe31eafcd9fb72bdc457f38575d9e42931ecd0 --- v3/Cargo.toml | 2 +- v3/crates/open-dds/metadata.jsonschema | 4 ++-- v3/crates/open-dds/src/data_connector.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/v3/Cargo.toml b/v3/Cargo.toml index a7fdfa131b9..5afb8fde5c1 100644 --- a/v3/Cargo.toml +++ b/v3/Cargo.toml @@ -66,7 +66,7 @@ private_intra_doc_links = "allow" [workspace.dependencies] ndc-models = { git = "https://github.com/hasura/ndc-spec.git", rev = "54baf298b5d6a69f12a701e9f0e3ce8f188a194d" } # When you update this tag, also update the schema references in crates/open-dds/src/data_connector.rs -ndc-models-v01 = { package = "ndc-models", git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.6" } +ndc-models-v01 = { package = "ndc-models", git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.6" } # When you update this tag, also update the schema references in crates/open-dds/src/data_connector.rs anyhow = "1" apollo-parser = "0.7" diff --git a/v3/crates/open-dds/metadata.jsonschema b/v3/crates/open-dds/metadata.jsonschema index 049a3409fbc..0bf07225b1a 100644 --- a/v3/crates/open-dds/metadata.jsonschema +++ b/v3/crates/open-dds/metadata.jsonschema @@ -5566,10 +5566,10 @@ ] }, "schema": { - "$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.4/ndc-models/tests/json_schema/schema_response.jsonschema" + "$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.6/ndc-models/tests/json_schema/schema_response.jsonschema" }, "capabilities": { - "$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.4/ndc-models/tests/json_schema/capabilities_response.jsonschema" + "$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.6/ndc-models/tests/json_schema/capabilities_response.jsonschema" } }, "additionalProperties": false diff --git a/v3/crates/open-dds/src/data_connector.rs b/v3/crates/open-dds/src/data_connector.rs index 30839a99cac..1f56153b400 100644 --- a/v3/crates/open-dds/src/data_connector.rs +++ b/v3/crates/open-dds/src/data_connector.rs @@ -79,13 +79,13 @@ impl DataConnectorLink { fn ndc_capabilities_response_v01_schema_reference( _gen: &mut schemars::gen::SchemaGenerator, ) -> schemars::schema::Schema { - schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.4/ndc-models/tests/json_schema/capabilities_response.jsonschema".into()) + schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.6/ndc-models/tests/json_schema/capabilities_response.jsonschema".into()) } fn ndc_schema_response_v01_schema_reference( _gen: &mut schemars::gen::SchemaGenerator, ) -> schemars::schema::Schema { - schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.4/ndc-models/tests/json_schema/schema_response.jsonschema".into()) + schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.6/ndc-models/tests/json_schema/schema_response.jsonschema".into()) } fn ndc_capabilities_response_v02_schema_reference(