maahir22 commented on code in PR #30346:
URL: https://github.com/apache/airflow/pull/30346#discussion_r1152346423
##########
airflow/api_connexion/endpoints/request_dict.py:
##########
@@ -15,12 +15,13 @@
# specific language governing permissions and limitations
# under the License.
from __future__ import annotations
-
+from marshmallow import ValidationError
from typing import Any, Mapping, cast
def get_json_request_dict() -> Mapping[str, Any]:
"""Cast request dictionary to JSON."""
from flask import request
-
+ if request.data == b'':
+ raise ValidationError("POST Body must not be None")
Review Comment:
Changes done, hopefully, pre-commit should pass now.
--
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]