ashb commented on code in PR #73005:
URL: https://github.com/apache/airflow/pull/73005#discussion_r3993163721


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/xcoms.py:
##########
@@ -397,7 +396,7 @@ def set_xcom(
     map_index: Annotated[int, Query()] = -1,
     dag_result: Annotated[bool, Query(description="Whether this XCom is a dag 
result")] = False,
     mapped_length: Annotated[
-        int | None, Query(description="Number of mapped tasks this value 
expands into")
+        int | None, Query(ge=0, description="Number of mapped tasks this value 
expands into")

Review Comment:
   Good shout.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to