From 700db50f0ee56849138453e0388a58eeb9545f9e Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Fri, 11 Aug 2023 13:03:58 -0300 Subject: [PATCH] fix schema and add additionalProperties true --- .../connectors/source-onesignal/Dockerfile | 2 +- .../connectors/source-onesignal/metadata.yaml | 2 +- .../source_onesignal/schemas/apps.json | 16 ++++++++++++++++ .../source_onesignal/schemas/devices.json | 1 + .../source_onesignal/schemas/notifications.json | 1 + .../source_onesignal/schemas/outcomes.json | 1 + docs/integrations/sources/onesignal.md | 1 + 7 files changed, 22 insertions(+), 2 deletions(-) diff --git a/airbyte-integrations/connectors/source-onesignal/Dockerfile b/airbyte-integrations/connectors/source-onesignal/Dockerfile index ed6756ca667d..43a620a289db 100644 --- a/airbyte-integrations/connectors/source-onesignal/Dockerfile +++ b/airbyte-integrations/connectors/source-onesignal/Dockerfile @@ -34,5 +34,5 @@ COPY source_onesignal ./source_onesignal ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py" ENTRYPOINT ["python", "/airbyte/integration_code/main.py"] -LABEL io.airbyte.version=1.0.0 +LABEL io.airbyte.version=1.0.1 LABEL io.airbyte.name=airbyte/source-onesignal diff --git a/airbyte-integrations/connectors/source-onesignal/metadata.yaml b/airbyte-integrations/connectors/source-onesignal/metadata.yaml index 4160d217951b..5973caf0b84b 100644 --- a/airbyte-integrations/connectors/source-onesignal/metadata.yaml +++ b/airbyte-integrations/connectors/source-onesignal/metadata.yaml @@ -2,7 +2,7 @@ data: connectorSubtype: api connectorType: source definitionId: bb6afd81-87d5-47e3-97c4-e2c2901b1cf8 - dockerImageTag: 1.0.0 + dockerImageTag: 1.0.1 dockerRepository: airbyte/source-onesignal githubIssueLabel: source-onesignal icon: onesignal.svg diff --git a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/apps.json b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/apps.json index f637529e83e7..8d66d7546299 100644 --- a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/apps.json +++ b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/apps.json @@ -1,6 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": ["null", "string"] @@ -81,6 +82,21 @@ }, "additional_data_is_root_payload": { "type": ["null", "boolean"] + }, + "apns_key_id": { + "type": ["null", "string"] + }, + "apns_p8": { + "type": ["null", "string"] + }, + "apns_team_id": { + "type": ["null", "string"] + }, + "fcm_v1_service_account_json": { + "type": ["null", "string"] + }, + "apns_bundle_id": { + "type": ["null", "string"] } } } diff --git a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/devices.json b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/devices.json index 7de3a1664c47..fb99daae9012 100644 --- a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/devices.json +++ b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/devices.json @@ -1,6 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": "string" diff --git a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/notifications.json b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/notifications.json index 55dbb822b4b1..a33cec41b845 100644 --- a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/notifications.json +++ b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/notifications.json @@ -1,6 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "adm_big_picture": { "type": ["null", "string"] diff --git a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/outcomes.json b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/outcomes.json index 54ca46fef0d4..e5cde1806a1c 100644 --- a/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/outcomes.json +++ b/airbyte-integrations/connectors/source-onesignal/source_onesignal/schemas/outcomes.json @@ -1,6 +1,7 @@ { "$schema": "https://json-schema.org/draft-07/schema#", "type": "object", + "additionalProperties": true, "properties": { "id": { "type": "string" diff --git a/docs/integrations/sources/onesignal.md b/docs/integrations/sources/onesignal.md index bb2f124b6680..40e2ba112941 100644 --- a/docs/integrations/sources/onesignal.md +++ b/docs/integrations/sources/onesignal.md @@ -75,6 +75,7 @@ The connector is restricted by normal OneSignal [rate limits](https://documentat | Version | Date | Pull Request | Subject | | :------ | :--------- | :------------------------------------------------------- | :------------------------------------------- | +| 1.0.1 | 2023-03-14 | [24076](https://github.com/airbytehq/airbyte/pull/24076) | Fix schema and add additionalProperties true | | 1.0.0 | 2023-03-14 | [24076](https://github.com/airbytehq/airbyte/pull/24076) | Update connectors spec; fix incremental sync | | 0.1.2 | 2021-12-07 | [8582](https://github.com/airbytehq/airbyte/pull/8582) | Update connector fields title/description | | 0.1.1 | 2021-11-10 | [7617](https://github.com/airbytehq/airbyte/pull/7617) | Fix get_update state |