You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2023/08/23 11:32:00 UTC

[airflow] branch main updated: Addd triggers and transfers to provider_info.schema (#33654)

This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 5544c8b20b Addd triggers and transfers to provider_info.schema (#33654)
5544c8b20b is described below

commit 5544c8b20b5bdb5c4f5791bc652c2e6940d79295
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Aug 23 13:31:53 2023 +0200

    Addd triggers and transfers to provider_info.schema (#33654)
    
    They were not added to the schema, even if they are appearing
    already as they are automatically extracted from provider.yaml
    
    Part of #29918
---
 airflow/provider_info.schema.json | 54 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/airflow/provider_info.schema.json b/airflow/provider_info.schema.json
index 3a37810f7a..b97bd44fe4 100644
--- a/airflow/provider_info.schema.json
+++ b/airflow/provider_info.schema.json
@@ -25,6 +25,60 @@
                 "deprecatedVersion": "2.2.0"
             }
         },
+        "transfers": {
+            "type": "array",
+            "items": {
+                "type": "object",
+                "properties": {
+                    "how-to-guide": {
+                        "description": "Path to how-to-guide for the transfer. The path must start with '/docs/'",
+                        "type": "string"
+                    },
+                    "source-integration-name": {
+                        "type": "string",
+                        "description": "Integration name. It must have a matching item in the 'integration' section of any provider."
+                    },
+                    "target-integration-name": {
+                        "type": "string",
+                        "description": "Target integration name. It must have a matching item in the 'integration' section of any provider."
+                    },
+                    "python-module": {
+                        "type": "string",
+                        "description": "List of python modules containing the transfers."
+                    }
+                },
+                "additionalProperties": false,
+                "required": [
+                    "source-integration-name",
+                    "target-integration-name",
+                    "python-module"
+                ]
+            }
+        },
+        "triggers": {
+            "type": "array",
+            "items": {
+                "type": "object",
+                "properties": {
+                    "integration-name": {
+                        "type": "string",
+                        "description": "Integration name. It must have a matching item in the 'integration' section of any provider."
+                    },
+                    "python-modules": {
+                        "description": "List of Python modules containing the triggers.",
+                        "type": "array",
+                        "items": {
+                            "type": "string"
+                        }
+                    }
+                },
+                "additionalProperties": false,
+                "required": [
+                    "integration-name",
+                    "python-modules"
+                ]
+            }
+        },
         "connection-types": {
             "type": "array",
             "description": "Map of connection types mapped to hook class names.",