update ndc-spec dependency to v0.1.0-rc.13 (#275)

V3_GIT_ORIGIN_REV_ID: 8dcb1c45b28e060d60eb76f15653d3eba737314e
This commit is contained in:
paritosh-08 2024-01-03 10:48:27 +05:30 committed by hasura-bot
parent e12888f0e7
commit ff846d4916
8 changed files with 11 additions and 13 deletions

2
v3/Cargo.lock generated
View File

@ -1898,7 +1898,7 @@ dependencies = [
[[package]]
name = "ndc-client"
version = "0.1.0"
source = "git+https://github.com/hasura/ndc-spec.git?tag=v0.1.0-rc.12#0e84462f98fdf77e1f25ab905e33918aaef4cee9"
source = "git+https://github.com/hasura/ndc-spec.git?tag=v0.1.0-rc.13#1f9b2a996ad74ac4bc97a783c4d014a3fd46b08e"
dependencies = [
"async-trait",
"indexmap 2.1.0",

View File

@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.12" }
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.13" }
indexmap = "2"
serde_json = "^1.0.92"
tokio = { version = "^1.26.0", features = [

View File

@ -28,7 +28,7 @@ services:
timeout: 10s
retries: 20
reference_agent:
build: https://github.com/hasura/ndc-spec.git#v0.1.0-rc.11
build: https://github.com/hasura/ndc-spec.git#v0.1.0-rc.13
ports:
- 8102:8100
auth_hook:

View File

@ -15,7 +15,7 @@ thiserror = "1.0"
hasura-authn-core = { path = "../hasura-authn-core" }
lang-graphql = { path = "../lang-graphql" }
tracing-util = { path = "../tracing-util" }
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.12" }
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.13" }
open-dds = { path = "../open-dds" }
# util = { path = "../util" }
serde = "1.0.152"

View File

@ -229,9 +229,7 @@ fn render_ndc_error(error: &ndc_client::apis::Error) -> String {
"connector returned status code {0} with message: {1}",
err.status, err.error_response.message,
),
ndc_client::apis::Error::InvalidConnectorUrl(err) => {
format!("invalid connector url: {err}")
}
ndc_client::apis::Error::InvalidBaseURL => "invalid connector base URL".to_string(),
}
}

View File

@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
derive_more = "0.99.17"
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.12" }
ndc-client = { git = "https://github.com/hasura/ndc-spec.git", tag = "v0.1.0-rc.13" }
schemars = { version = "0.8.12", features = ["smol_str", "preserve_order"] }
serde = "1.0.152"
serde_json = { version = "1.0.92", features = ["preserve_order"] }

View File

@ -443,7 +443,7 @@
},
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.11/ndc-client/tests/json_schema/schema_response.jsonschema"
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/ndc-client/tests/json_schema/schema_response.jsonschema"
}
]
},
@ -545,7 +545,7 @@
]
},
"CapabilitiesResponse": {
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.11/ndc-client/tests/json_schema/capabilities_response.jsonschema"
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/ndc-client/tests/json_schema/capabilities_response.jsonschema"
},
"DataConnectorV2": {
"$id": "https://hasura.io/jsonschemas/metadata/DataConnectorV2",
@ -618,7 +618,7 @@
},
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.11/ndc-client/tests/json_schema/schema_response.jsonschema"
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/ndc-client/tests/json_schema/schema_response.jsonschema"
}
]
},

View File

@ -45,14 +45,14 @@ impl JsonSchema for CapabilitiesResponseWithSchema {
}
fn json_schema(_gen: &mut schemars::gen::SchemaGenerator) -> schemars::schema::Schema {
schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.11/ndc-client/tests/json_schema/capabilities_response.jsonschema".into())
schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/ndc-client/tests/json_schema/capabilities_response.jsonschema".into())
}
}
fn ndc_schema_response_schema_reference(
_gen: &mut schemars::gen::SchemaGenerator,
) -> schemars::schema::Schema {
schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.11/ndc-client/tests/json_schema/schema_response.jsonschema".into())
schemars::schema::Schema::new_ref("https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/ndc-client/tests/json_schema/schema_response.jsonschema".into())
}
#[cfg(test)]