diff --git a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml
index fe61b3707ee2..b4bed06e722b 100644
--- a/airbyte-config/init/src/main/resources/seed/source_definitions.yaml
+++ b/airbyte-config/init/src/main/resources/seed/source_definitions.yaml
@@ -1099,6 +1099,13 @@
icon: snowflake.svg
sourceType: database
releaseStage: alpha
+- name: Sonar Cloud
+ sourceDefinitionId: 3ab1d7d0-1577-4ab9-bcc4-1ff6a4c2c9f2
+ dockerRepository: airbyte/source-sonar-cloud
+ dockerImageTag: 0.1.0
+ documentationUrl: https://docs.airbyte.com/integrations/sources/sonar-cloud
+ sourceType: api
+ releaseStage: alpha
- name: Square
sourceDefinitionId: 77225a51-cd15-4a13-af02-65816bd0ecf4
dockerRepository: airbyte/source-square
diff --git a/airbyte-config/init/src/main/resources/seed/source_specs.yaml b/airbyte-config/init/src/main/resources/seed/source_specs.yaml
index 60795ac457e2..d5f5e9f23f58 100644
--- a/airbyte-config/init/src/main/resources/seed/source_specs.yaml
+++ b/airbyte-config/init/src/main/resources/seed/source_specs.yaml
@@ -11340,6 +11340,56 @@
path_in_connector_config:
- "credentials"
- "client_secret"
+- dockerImage: "airbyte/source-sonar-cloud:0.1.0"
+ spec:
+ documentationUrl: "https://docs.airbyte.com/integrations/sources/sonar-cloud"
+ connectionSpecification:
+ $schema: "http://json-schema.org/draft-07/schema#"
+ title: "Sonar Cloud Spec"
+ type: "object"
+ required:
+ - "user_token"
+ - "organization"
+ - "component_keys"
+ additionalProperties: true
+ properties:
+ user_token:
+ title: "User Token"
+ type: "string"
+ description: "Your User Token. See here. The token is case sensitive."
+ airbyte_secret: true
+ organization:
+ title: "Organization"
+ type: "string"
+ description: "Organization key. See here."
+ examples:
+ - "airbyte"
+ component_keys:
+ title: "Component Keys"
+ type: "array"
+ description: "Comma-separated list of component keys."
+ examples:
+ - "airbyte-ws-order"
+ - "airbyte-ws-checkout"
+ start_date:
+ title: "Start date"
+ type: "string"
+ description: "To retrieve issues created after the given date (inclusive)."
+ pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
+ examples:
+ - "YYYY-MM-DD"
+ end_date:
+ title: "End date"
+ type: "string"
+ description: "To retrieve issues created before the given date (inclusive)."
+ pattern: "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
+ examples:
+ - "YYYY-MM-DD"
+ supportsNormalization: false
+ supportsDBT: false
+ supported_destination_sync_modes: []
- dockerImage: "airbyte/source-square:0.1.4"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/square"
diff --git a/airbyte-integrations/connectors/source-sonar-cloud/integration_tests/configured_catalog.json b/airbyte-integrations/connectors/source-sonar-cloud/integration_tests/configured_catalog.json
index a16515c87d74..119a8e122504 100644
--- a/airbyte-integrations/connectors/source-sonar-cloud/integration_tests/configured_catalog.json
+++ b/airbyte-integrations/connectors/source-sonar-cloud/integration_tests/configured_catalog.json
@@ -8,7 +8,7 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
- },
+ },
{
"stream": {
"name": "issues",
@@ -17,7 +17,7 @@
},
"sync_mode": "full_refresh",
"destination_sync_mode": "overwrite"
- },
+ },
{
"stream": {
"name": "metrics",
diff --git a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/schemas/metrics.json b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/schemas/metrics.json
index 1d432712ebb9..8ede95f11d9b 100644
--- a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/schemas/metrics.json
+++ b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/schemas/metrics.json
@@ -29,6 +29,5 @@
"direction": {
"type": "number"
}
-
}
}
diff --git a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/sonar_cloud.yaml b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/sonar_cloud.yaml
index 139616ccc58b..7610d4cdb28b 100644
--- a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/sonar_cloud.yaml
+++ b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/sonar_cloud.yaml
@@ -3,7 +3,7 @@ version: "0.1.0"
definitions:
selector:
extractor:
- field_pointer:
+ field_pointer:
- "{{ options['name'] }}"
requester:
url_base: "https://sonarcloud.io/api"
diff --git a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/spec.yaml b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/spec.yaml
index 6343a141b8be..b58b244a3c78 100644
--- a/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/spec.yaml
+++ b/airbyte-integrations/connectors/source-sonar-cloud/source_sonar_cloud/spec.yaml
@@ -26,7 +26,7 @@ connectionSpecification:
examples:
- airbyte
component_keys:
- title: Component Keys
+ title: Component Keys
type: array
description: Comma-separated list of component keys.
examples:
@@ -46,4 +46,3 @@ connectionSpecification:
pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
examples:
- YYYY-MM-DD
-