jscheffl commented on code in PR #65469:
URL: https://github.com/apache/airflow/pull/65469#discussion_r3320610343
##########
task-sdk/src/airflow/sdk/definitions/param.py:
##########
@@ -106,8 +105,14 @@ def resolve(self, value: Any = NOTSET, suppress_exception:
bool = False) -> Any:
if suppress_exception:
return None
raise ParamValidationError("No value passed and Param has no
default value")
+
try:
- jsonschema.validate(final_val, self.schema,
format_checker=FormatChecker())
+ validate(
+ final_val,
+ self.schema,
+ format_checker=FormatChecker(),
+ )
+
Review Comment:
nit: I think the empty line can be reverted and the statement can be kept
single line.
```suggestion
try:
validate(final_val, self.schema, format_checker=FormatChecker())
```
--
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]