mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
Make schema field mandatory in ConnectorLink (#315)
V3_GIT_ORIGIN_REV_ID: 5d782bc8dec8630b5b63821b61ecec615f0ed47f
This commit is contained in:
parent
339cc34d06
commit
dfd2e940b1
@ -267,7 +267,14 @@ mod tests {
|
||||
"url": { "singleUrl": { "value": "http://test.com" } },
|
||||
"schema": {
|
||||
"version": "v0.1",
|
||||
"capabilities": { "versions": "1", "capabilities": { "query": {} }}
|
||||
"capabilities": { "versions": "1", "capabilities": { "query": {} }},
|
||||
"schema": {
|
||||
"scalar_types": {},
|
||||
"object_types": {},
|
||||
"collections": [],
|
||||
"functions": [],
|
||||
"procedures": []
|
||||
}
|
||||
}
|
||||
}
|
||||
"#,
|
||||
|
@ -515,6 +515,7 @@
|
||||
"type": "object",
|
||||
"required": [
|
||||
"capabilities",
|
||||
"schema",
|
||||
"version"
|
||||
],
|
||||
"properties": {
|
||||
@ -525,18 +526,7 @@
|
||||
]
|
||||
},
|
||||
"schema": {
|
||||
"default": {
|
||||
"scalar_types": {},
|
||||
"object_types": {},
|
||||
"collections": [],
|
||||
"functions": [],
|
||||
"procedures": []
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/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"
|
||||
},
|
||||
"capabilities": {
|
||||
"$ref": "https://raw.githubusercontent.com/hasura/ndc-spec/v0.1.0-rc.13/ndc-client/tests/json_schema/capabilities_response.jsonschema"
|
||||
|
@ -58,7 +58,6 @@ pub enum VersionedSchemaAndCapabilities {
|
||||
#[schemars(title = "SchemaAndCapabilitiesV01")]
|
||||
pub struct SchemaAndCapabilitiesV01 {
|
||||
#[schemars(schema_with = "ndc_schema_response_v01_schema_reference")]
|
||||
#[serde(default)]
|
||||
pub schema: SchemaResponse,
|
||||
#[schemars(schema_with = "ndc_capabilities_response_v01_schema_reference")]
|
||||
pub capabilities: CapabilitiesResponse,
|
||||
@ -94,6 +93,13 @@ mod tests {
|
||||
"capabilities": {
|
||||
"query": {}
|
||||
}
|
||||
},
|
||||
"schema": {
|
||||
"scalar_types": {},
|
||||
"object_types": {},
|
||||
"collections": [],
|
||||
"functions": [],
|
||||
"procedures": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -123,6 +129,13 @@ mod tests {
|
||||
"capabilities": {
|
||||
"query": {}
|
||||
}
|
||||
},
|
||||
"schema": {
|
||||
"scalar_types": {},
|
||||
"object_types": {},
|
||||
"collections": [],
|
||||
"functions": [],
|
||||
"procedures": []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -62,7 +62,14 @@ impl DataConnectorLinkV1 {
|
||||
"variables": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schema": {
|
||||
"scalar_types": {},
|
||||
"object_types": {},
|
||||
"collections": [],
|
||||
"functions": [],
|
||||
"procedures": []
|
||||
}
|
||||
}
|
||||
}
|
||||
"#,
|
||||
|
Loading…
Reference in New Issue
Block a user