-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduces separate runtime provider schema
The provider.yaml contains more information that required at runtime (specifically about documentation building). Those fields are not needed at runtime and their presence is optional. Also the runtime check for provider information should be more relexed and allow for future compatibility (with additional properties set to false). This way we can add new, optional fields to provider.yaml without worrying about breaking future-compatibility of providers with future airflow versions. This changei restores 'additionalProperties': false in the main, development-focused provider.yaml schema and introduced new runtime schema that is used to verify the provider info when providers are discovered by airflow. This 'runtime' version should change very rarely as change to add a new required property in it breaks compatibility of providers with already released versions of Airflow. We also trim-down the provider.yaml file when preparing provider packages to only contain those fields that are required in the runtime schema.
- Loading branch information
Showing
13 changed files
with
155 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"package-name": { | ||
"description": "Package name available under which the package is available in the PyPI repository.", | ||
"type": "string" | ||
}, | ||
"name": { | ||
"description": "Provider name", | ||
"type": "string" | ||
}, | ||
"description": { | ||
"description": "Information about the package in RST format", | ||
"type": "string" | ||
}, | ||
"hook-class-names": { | ||
"type": "array", | ||
"description": "Hook class names that provide connection types to core", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"extra-links": { | ||
"type": "array", | ||
"description": "Class name that provide extra link functionality", | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"package-name", | ||
"description", | ||
"versions" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.