We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6b810d commit 4c3d8a2Copy full SHA for 4c3d8a2
sanic_ext/extras/validation/clean.py
@@ -8,7 +8,7 @@ def clean_data(model: type[object], data: dict[str, Any]) -> dict[str, Any]:
8
9
def _coerce(param_type, value: Any) -> Any:
10
if (
11
- get_origin(param_type) is list
+ get_origin(param_type) is not list
12
and isinstance(value, list)
13
and len(value) == 1
14
):
0 commit comments