Forbid extra fields in execution API request and response models #44978
Labels
area:API
Airflow's REST/HTTP API
area:task-execution-interface-aip72
AIP-72: Task Execution Interface (TEI) aka Task SDK
good first issue
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 intask_sdk/src/airflow/sdk/api/datamodels/_generated.py
. Idea is to updateairflow/api_fastapi/execution_api/datamodels/*.py
first and make relevant changes totask_sdk/src/airflow/sdk/api/datamodels/_generated.py
after.The text was updated successfully, but these errors were encountered: