Yusin0903 commented on code in PR #49164:
URL: https://github.com/apache/airflow/pull/49164#discussion_r2107707193
##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/assets.py:
##########
@@ -341,7 +341,12 @@ def create_asset_event(
@assets_router.post(
"/assets/{asset_id}/materialize",
- responses=create_openapi_http_exception_doc([status.HTTP_404_NOT_FOUND,
status.HTTP_409_CONFLICT]),
+ responses=create_openapi_http_exception_doc(
+ [
+ status.HTTP_404_NOT_FOUND,
+ status.HTTP_409_CONFLICT,
+ ]
Review Comment:
Since I’ve moved the error handling into a centralized error handler, I
believe it’s no longer necessary to explicitly set the response status code
here. Please let me know if you think it should still be added for clarity.
--
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]