Skip to content

Rename connection type pydantic_ai to pydanticai (RFC 3986) - #62817

Merged
kaxil merged 1 commit into
apache:mainfrom
astronomer:fix/pydanticai-conn-type
Mar 3, 2026
Merged

kaxil merged 1 commit into
apache:mainfrom
astronomer:fix/pydanticai-conn-type

Conversation

@kaxil

@kaxil kaxil commented Mar 3, 2026

Copy link
Copy Markdown
Member

Summary

RFC 3986 Section 3.1 defines URI scheme syntax as ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ). The underscore in pydantic_ai is not allowed and triggers a validation warning:

WARNING - Connection schemes (type: pydantic_ai) shall not contain '_' according to RFC3986.

Renamed to pydanticai (no separator), consistent with existing Airflow providers like openai and cohere.

Changes

  • conn_type: pydantic_ai -> pydanticai
  • default_conn_name: pydantic_ai_default -> pydanticai_default
  • Updated all example DAGs, docs, and tests to use the new names

RFC 3986 Section 3.1 only allows ALPHA, DIGIT, "+", "-", and "." in
URI schemes. The underscore in pydantic_ai triggers a validation
warning. Rename to pydanticai (no separator), consistent with existing
providers like openai and cohere.
Comment thread providers/common/ai/docs/connections/pydantic_ai.rst
Comment thread providers/common/ai/docs/connections/pydantic_ai.rst
Comment thread providers/common/ai/docs/connections/pydantic_ai.rst
@kaxil
kaxil merged commit 65d76f1 into apache:main Mar 3, 2026
80 of 81 checks passed
@kaxil
kaxil deleted the fix/pydanticai-conn-type branch March 3, 2026 21:39
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
RFC 3986 Section 3.1 only allows ALPHA, DIGIT, "+", "-", and "." in
URI schemes. The underscore in pydantic_ai triggers a validation
warning. Rename to pydanticai (no separator), consistent with existing
providers like openai and cohere.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

2 participants