* 3962: Add oneOf schema rules validation for acceptance test * Add spec acceptance test for mssql and postgres connectors Co-authored-by: Dmytro Rezchykov <dmitry.rezchykov@zazmic.com>
101 lines
3.6 KiB
JSON
101 lines
3.6 KiB
JSON
{
|
|
"documentationUrl": "https://docs.airbyte.io/integrations/destinations/mssql",
|
|
"connectionSpecification": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "MSSQL Source Spec",
|
|
"type": "object",
|
|
"required": ["host", "port", "database", "username"],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"host": {
|
|
"description": "Hostname of the database.",
|
|
"type": "string"
|
|
},
|
|
"port": {
|
|
"description": "Port of the database.",
|
|
"type": "integer",
|
|
"minimum": 0,
|
|
"maximum": 65536,
|
|
"examples": ["1433"]
|
|
},
|
|
"database": {
|
|
"description": "Name of the database.",
|
|
"type": "string",
|
|
"examples": ["master"]
|
|
},
|
|
"username": {
|
|
"description": "Username to use to access the database.",
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"description": "Password associated with the username.",
|
|
"type": "string",
|
|
"airbyte_secret": true
|
|
},
|
|
"ssl_method": {
|
|
"title": "SSL Method",
|
|
"type": "object",
|
|
"description": "Encryption method to use when communicating with the database",
|
|
"order": 6,
|
|
"oneOf": [
|
|
{
|
|
"title": "Unencrypted",
|
|
"additionalProperties": false,
|
|
"description": "Data transfer will not be encrypted.",
|
|
"required": ["ssl_method"],
|
|
"properties": {
|
|
"ssl_method": {
|
|
"type": "string",
|
|
"const": "unencrypted",
|
|
"enum": ["unencrypted"],
|
|
"default": "unencrypted"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Encrypted (trust server certificate)",
|
|
"additionalProperties": false,
|
|
"description": "Use the cert provided by the server without verification. (For testing purposes only!)",
|
|
"required": ["ssl_method"],
|
|
"properties": {
|
|
"ssl_method": {
|
|
"type": "string",
|
|
"const": "encrypted_trust_server_certificate",
|
|
"enum": ["encrypted_trust_server_certificate"],
|
|
"default": "encrypted_trust_server_certificate"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"title": "Encrypted (verify certificate)",
|
|
"additionalProperties": false,
|
|
"description": "Verify and use the cert provided by the server.",
|
|
"required": ["ssl_method", "trustStoreName", "trustStorePassword"],
|
|
"properties": {
|
|
"ssl_method": {
|
|
"type": "string",
|
|
"const": "encrypted_verify_certificate",
|
|
"enum": ["encrypted_verify_certificate"],
|
|
"default": "encrypted_verify_certificate"
|
|
},
|
|
"hostNameInCertificate": {
|
|
"title": "Host Name In Certificate",
|
|
"type": "string",
|
|
"description": "Specifies the host name of the server. The value of this property must match the subject property of the certificate.",
|
|
"order": 7
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"replication_method": {
|
|
"type": "string",
|
|
"title": "Replication Method",
|
|
"description": "Replication method to use for extracting data from the database. STANDARD replication requires no setup on the DB side but will not be able to represent deletions incrementally. CDC uses {TBC} to detect inserts, updates, and deletes. This needs to be configured on the source database itself.",
|
|
"default": "STANDARD",
|
|
"enum": ["STANDARD", "CDC"]
|
|
}
|
|
}
|
|
}
|
|
}
|