amoghrajesh opened a new issue, #58529:
URL: https://github.com/apache/airflow/issues/58529

   ### Body
   
   When a Connection has `conn_type=None` (which is valid for secrets backend 
connections), `ConnectionResponse.model_validate(connection)` fails because the 
Pydantic model requires `conn_type: str` (not optional).
   
   1. Secrets backends can return connections without conn_type (backward 
compatible with Airflow 2)
   2. The database model requires `conn_type` (nullable=False), but secrets 
backend connections are ephemeral and don't go through the database.
   
   Qns that need investigation:
   1. Should ConnectionResponse models allow `conn_type: str | None` to support 
secrets backend connections?
   2. What's the impact on API consumers (UI, CLI, other clients) if we make 
conn_type optional?
   
   ### Committer
   
   - [x] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


-- 
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]

Reply via email to