Skip to content

Commit

Permalink
Lower-bind pydantic to 2.10.1 (#44284)
Browse files Browse the repository at this point in the history
The new pydantic 2.10 release produces different output for the
OpenAPI specification for the same classes. In order to stabilize
it, we should make sure Pydantic is not less than 2.10.1.
  • Loading branch information
potiuk authored Nov 22, 2024
1 parent 03d6c2b commit 8f567ec
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions airflow/api_fastapi/core_api/openapi/v1-generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4042,17 +4042,13 @@ paths:
in: path
required: true
schema:
enum:
- '~'
const: '~'
type: string
title: Dag Id
- name: dag_run_id
in: path
required: true
schema:
enum:
- '~'
const: '~'
type: string
title: Dag Run Id
Expand Down Expand Up @@ -7615,7 +7611,7 @@ components:
properties:
__type:
type: string
title: ' Type'
title: Type
default: TimeDelta
days:
type: integer
Expand Down
2 changes: 1 addition & 1 deletion airflow/ui/openapi-gen/requests/schemas.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4331,7 +4331,7 @@ export const $TimeDelta = {
properties: {
__type: {
type: "string",
title: " Type",
title: "Type",
default: "TimeDelta",
},
days: {
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
"edge": {
"deps": [
"apache-airflow>=2.10.0",
"pydantic>=2.6.4"
"pydantic>=2.10.1"
],
"devel-deps": [],
"plugins": [
Expand Down
2 changes: 1 addition & 1 deletion hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
"pluggy>=1.5.0",
"psutil>=5.8.0",
# https://github.com/pydantic/pydantic/issues/10910
"pydantic>=2.7.0,!=2.10.0",
"pydantic>=2.10.1",
"pygments>=2.0.1",
"pyjwt>=2.0.0",
"python-daemon>=3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion providers/src/airflow/providers/edge/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ versions:

dependencies:
- apache-airflow>=2.10.0
- pydantic>=2.6.4
- pydantic>=2.10.1

plugins:
- name: edge_executor
Expand Down

0 comments on commit 8f567ec

Please sign in to comment.