Connector: add stitch schema (#18452)

This commit is contained in:
harshsoni2024 2024-11-07 21:08:41 +05:30 committed by GitHub
parent 198dd35cc1
commit 01208ef4b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 71 additions and 1 deletions

View File

@ -0,0 +1,21 @@
{
"name": "Stitch",
"displayName": "Stitch Test Connection",
"description": "This Test Connection validates the access against the server and basic metadata extraction of pipelines.",
"steps": [
{
"name": "GetSources",
"description": "Get pipeline sources",
"errorMessage": "Failed to get all the sources for pipeline",
"shortCircuit": true,
"mandatory": true
},
{
"name": "GetDestinations",
"description": "Get pipeline destinations",
"errorMessage": "Failed to get all the destinations for pipeline",
"shortCircuit": true,
"mandatory": true
}
]
}

View File

@ -0,0 +1,42 @@
{
"$id": "https://open-metadata.org/schema/entity/services/connections/pipeline/stitchConnection.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "StitchConnection",
"description": "Stitch Connection",
"type": "object",
"javaType": "org.openmetadata.schema.services.connections.pipeline.StitchConnection",
"definitions": {
"stitchType": {
"description": "Service type.",
"type": "string",
"enum": ["Stitch"],
"default": "Stitch"
}
},
"properties": {
"type": {
"title": "Service Type",
"description": "Service Type",
"$ref": "#/definitions/stitchType",
"default": "Stitch"
},
"hostPort": {
"title": "Host and Port",
"description": "Host and port of the Stitch API host",
"type": "string",
"default": "https://api.stitchdata.com/v4"
},
"token": {
"title": "JWT Token",
"description": "Token to connect to Stitch api doc",
"type": "string",
"format": "password"
},
"supportsMetadataExtraction": {
"title": "Supports Metadata Extraction",
"$ref": "../connectionBasicType.json#/definitions/supportsMetadataExtraction"
}
},
"additionalProperties": false,
"required": ["hostPort", "token"]
}

View File

@ -32,7 +32,8 @@
"OpenLineage",
"KafkaConnect",
"DBTCloud",
"Matillion"
"Matillion",
"Stitch"
],
"javaEnums": [
{
@ -82,6 +83,9 @@
},
{
"name": "Matillion"
},
{
"name": "Stitch"
}
]
},
@ -143,6 +147,9 @@
},
{
"$ref": "./connections/pipeline/matillionConnection.json"
},
{
"$ref": "./connections/pipeline/stitchConnection.json"
}
]
}