Leondon9 opened a new pull request, #62662:
URL: https://github.com/apache/airflow/pull/62662

   `airflowctl connections import` fails with a Pydantic `ValidationError` when 
the input JSON omits the `extra` field.
   
   The default value `v.get("extra", {})` returns `{}` (a dict), but 
`ConnectionBody.extra` expects `str | None`. Changing it to `v.get("extra")` 
returns `None` when the key is absent, which matches the model's type.
   
   closes: #62653
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (claude-opus-4-6)
   
   Generated-by: Claude Code (claude-opus-4-6) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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