Skip to content

Commit 5216779

Browse files
committed
refactor
1 parent fb6250b commit 5216779

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fastapi_jsonapi/data_layers/filtering/sqlalchemy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def create_filter(self, schema_field: ModelField, model_column, operator, value)
121121

122122
if clear_value is cast_failed:
123123
raise InvalidType(
124-
detail=f"Can't cast filter value `{value}` to user type.",
124+
detail=f"Can't cast filter value `{value}` to arbitrary type.",
125125
errors=[HTTPException(status_code=InvalidType.status_code, detail=str(err)) for err in errors],
126126
)
127127

tests/test_api/test_api_sqla_with_includes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,7 @@ class Config:
22402240
)
22412241

22422242
assert exc_info.value.as_dict == {
2243-
"detail": "Can't cast filter value `typing.Any` to user type.",
2243+
"detail": "Can't cast filter value `typing.Any` to arbitrary type.",
22442244
"meta": [
22452245
{
22462246
"detail": "Cast failed",

0 commit comments

Comments
 (0)