You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "bugraoz93 (via GitHub)" <gi...@apache.org> on 2025/05/21 15:02:21 UTC

Re: [PR] Fix bulk action annotation [airflow]

bugraoz93 commented on code in PR #50852:
URL: https://github.com/apache/airflow/pull/50852#discussion_r2100526039


##########
airflow-core/src/airflow/api_fastapi/core_api/datamodels/common.py:
##########
@@ -66,20 +66,29 @@ class BulkBaseAction(StrictBaseModel, Generic[T]):
 class BulkCreateAction(BulkBaseAction[T]):
     """Bulk Create entity serializer for request bodies."""
 
+    action: BulkAction = Field(

Review Comment:
   Should we allow other fields? Maybe it is good to add `Literal` here and only allow the action itself to create, upsate, or delete.
   What do you think?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org