Skip to content

Conversation

@pierrejeambrun
Copy link
Member

As discussed here #41798, pydantic v2 will be part of core requirement now. Mostly because fastapi requires pydantic. Even if fastapi can still (for now) work with pydantic v1, airflow 3 will only support pydantic v2.

@pierrejeambrun pierrejeambrun added this to the Airflow 3.0.0 milestone Aug 29, 2024
@pierrejeambrun pierrejeambrun changed the title Pydantic v2 as core dependency Pydantic v2 and FastAPI as core dependency Aug 29, 2024
@potiuk
Copy link
Member

potiuk commented Aug 29, 2024

The failing Test Open API has been fixed by #41856 (comment)

@pierrejeambrun pierrejeambrun force-pushed the pydantic-as-core-dependency branch from 0d17367 to 2358a89 Compare August 29, 2024 13:16
@pierrejeambrun
Copy link
Member Author

Thanks @potiuk for the tips, rebased.

@pierrejeambrun pierrejeambrun added the AIP-84 Modern Rest API label Aug 29, 2024
@pierrejeambrun
Copy link
Member Author

🤔 the db tests are still failing due to the unique constraint on dag run failing. Not sure how this is related to pydantic

@potiuk
Copy link
Member

potiuk commented Aug 29, 2024

🤔 the db tests are still failing due to the unique constraint on dag run failing. Not sure how this is related to pydantic

Was just looking at it - when you removed pydantic test, you have not removed all of it - the run_as_task is executed twice in the same test now.

@potiuk
Copy link
Member

potiuk commented Aug 29, 2024

Screenshot 2024-08-29 at 16 14 38

@pierrejeambrun pierrejeambrun merged commit 38e69c7 into apache:main Aug 29, 2024
@pierrejeambrun pierrejeambrun deleted the pydantic-as-core-dependency branch August 29, 2024 15:52
@jscheffl jscheffl added the airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-84 Modern Rest API airflow3.0:breaking Candidates for Airflow 3.0 that contain breaking changes area:dev-tools area:serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants