We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3127e10 commit cc0c61cCopy full SHA for cc0c61c
runpod/serverless/utils/rp_validator.py
@@ -73,7 +73,7 @@ def validate(raw_input: Dict[str, Any], schema: Dict[str, Any]
73
validated_input[key] = float(raw_input[key])
74
75
# Check for the correct type.
76
- if not isinstance(validated_input[key], rules['type']) and raw_input.get(key, None) is not None:
+ if not isinstance(validated_input[key], rules['type']) and raw_input.get(key, False):
77
_add_error(
78
error_list, f"{key} should be {rules['type']} type, not {type(raw_input[key])}.")
79
0 commit comments