Skip to content

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

Closed

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.

Activity

  1. added
    area:task-execution-interface-aip72
    on Dec 17, 2024
  2. added
    area:API
    on Dec 17, 2024
  3. jx2lee commented on Dec 17, 2024

    @jx2lee
    Contributor

    Can I take over this ? If you assign it to me, I'll take a quick look at it.
    (Do I create and link a PR first?)

  4. amoghrajesh commented on Dec 17, 2024

    @amoghrajesh
    ContributorAuthor

    Go for it. I will assign to you, you can start working on it

  5. added this to the Airflow 3.0.0 milestone on Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:APIarea:task-execution-interface-aip72good first issue

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions