maahir22 commented on code in PR #30346:
URL: https://github.com/apache/airflow/pull/30346#discussion_r1152359188


##########
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:
   + Please ignore the spam commits, I was testing something and it went wrong 
due to which it added a bunch of reviewers.



-- 
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