uranusjr commented on code in PR #34260:
URL: https://github.com/apache/airflow/pull/34260#discussion_r1324243936
##########
airflow/providers/google/cloud/utils/field_validator.py:
##########
@@ -421,6 +421,8 @@ def validate(self, body_to_validate: dict) -> None:
:param body_to_validate: body that must follow the specification
:return: None
"""
+ if body_to_validate is None:
+ raise RuntimeError("The body to validate is `None`. Please provide
a dictionary to validate.")
Review Comment:
Why is this needed? The argument is typed as `dict`, is it used incorrectly?
--
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]