amoghrajesh commented on code in PR #60410:
URL: https://github.com/apache/airflow/pull/60410#discussion_r2787096515
##########
airflow-core/src/airflow/provider.yaml.schema.json:
##########
@@ -350,6 +350,111 @@
"hook-class-name": {
"description": "Hook class name that implements the
connection type",
"type": "string"
+ },
+ "ui-field-behaviour": {
+ "description": "Customizations for standard connection
form fields",
+ "type": "object",
+ "properties": {
+ "hidden-fields": {
+ "description": "List of standard fields to
hide in the UI",
+ "type": "array",
+ "items": {
+ "type": "string",
+ "enum": ["description", "host", "port",
"login", "password", "schema", "extra"]
+ },
+ "default": []
+ },
+ "relabeling": {
+ "description": "Map of field names to custom
labels",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "default": {}
+ },
+ "placeholders": {
+ "description": "Map of field names to
placeholder text",
+ "type": "object",
+ "additionalProperties": {
+ "type": "string"
+ },
+ "default": {}
+ }
+ },
+ "additionalProperties": false
+ },
+ "conn-fields": {
+ "description": "Custom connection fields stored in
Connection.extra JSON",
+ "type": "object",
+ "additionalProperties": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string",
+ "description": "Display label for the
field"
+ },
+ "description": {
+ "type": "string",
+ "description": "Help text for the field"
+ },
+ "sensitive": {
+ "type": "boolean",
+ "default": false,
+ "description": "Whether to mask field
value (like password fields)"
+ },
Review Comment:
Apologies that comment got resolved by mistake. We do similar stuff in the
"hook" path, so maybe its a good idea to reuse that here too. Making the change
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]