Skip to content

Commit 4492391

Browse files
committed
refactor
1 parent e5e4569 commit 4492391

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
@@ -2415,7 +2415,7 @@ class Config:
24152415
)
24162416

24172417
assert exc_info.value.as_dict == {
2418-
"detail": "Can't cast filter value `typing.Any` to user type.",
2418+
"detail": "Can't cast filter value `typing.Any` to arbitrary type.",
24192419
"meta": [
24202420
{
24212421
"detail": "Cast failed",

0 commit comments

Comments
 (0)