diff --git a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/pools.py b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/pools.py
index 4342d04c1e125..34cf4cb982550 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/datamodels/pools.py
+++ b/airflow-core/src/airflow/api_fastapi/core_api/datamodels/pools.py
@@ -39,7 +39,7 @@ class BasePool(BaseModel):
pool: str = Field(serialization_alias="name")
slots: int
- description: str | None
+ description: str | None = Field(default=None)
include_deferred: bool
diff --git a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
index 5298d0d38ba01..bef548133c6b9 100644
--- a/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
+++ b/airflow-core/src/airflow/api_fastapi/core_api/openapi/v2-rest-api-generated.yaml
@@ -11548,7 +11548,6 @@ components:
required:
- name
- slots
- - description
- include_deferred
- occupied_slots
- running_slots
diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts b/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts
index 02747de08e4e7..3f0ebb2b82170 100644
--- a/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts
+++ b/airflow-core/src/airflow/ui/openapi-gen/requests/schemas.gen.ts
@@ -4393,7 +4393,7 @@ export const $PoolResponse = {
}
},
type: 'object',
- required: ['name', 'slots', 'description', 'include_deferred', 'occupied_slots', 'running_slots', 'queued_slots', 'scheduled_slots', 'open_slots', 'deferred_slots'],
+ required: ['name', 'slots', 'include_deferred', 'occupied_slots', 'running_slots', 'queued_slots', 'scheduled_slots', 'open_slots', 'deferred_slots'],
title: 'PoolResponse',
description: 'Pool serializer for responses.'
} as const;
diff --git a/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts b/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts
index 834e522fdf0f4..18efcbc82bac0 100644
--- a/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts
+++ b/airflow-core/src/airflow/ui/openapi-gen/requests/types.gen.ts
@@ -1157,7 +1157,7 @@ export type PoolPatchBody = {
export type PoolResponse = {
name: string;
slots: number;
- description: string | null;
+ description?: string | null;
include_deferred: boolean;
occupied_slots: number;
running_slots: number;
diff --git a/airflow-core/src/airflow/ui/src/pages/Pools/PoolForm.tsx b/airflow-core/src/airflow/ui/src/pages/Pools/PoolForm.tsx
index 37260eca66e20..38860f453a4ac 100644
--- a/airflow-core/src/airflow/ui/src/pages/Pools/PoolForm.tsx
+++ b/airflow-core/src/airflow/ui/src/pages/Pools/PoolForm.tsx
@@ -87,7 +87,17 @@ const PoolForm = ({ error, initialPool, isPending, manageMutate, setError }: Poo
render={({ field }) => (
{translate("pools.form.slots")}
-
+ {
+ const value = event.target.valueAsNumber;
+
+ field.onChange(isNaN(value) ? field.value : value);
+ }}
+ size="sm"
+ type="number"
+ value={field.value}
+ />
)}
/>
@@ -128,7 +138,7 @@ const PoolForm = ({ error, initialPool, isPending, manageMutate, setError }: Poo