Skip to content

Forbid extra fields in execution API request and response models #44978

@amoghrajesh

Description

@amoghrajesh

Body

Reference: https://github.com/apache/airflow/pull/44562/files#r1869482261

In lieueu of the above comment, we should update all the request and response models for execution API to forbid any extra fields. Although it makes more sense to do so for any of the PUT/POST APIs. Check under airflow/api_fastapi/execution_api/datamodels/*.py to find all the models. These models will be in sync with what is present in task_sdk/src/airflow/sdk/api/datamodels/_generated.py. Idea is to update airflow/api_fastapi/execution_api/datamodels/*.py first and make relevant changes to task_sdk/src/airflow/sdk/api/datamodels/_generated.py after.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions