Skip to content

Commit 7edf541

Browse files
committed
python 3.9 compatibility fix, doc update
1 parent 5c3debf commit 7edf541

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/custom_sql_filtering.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ Search for objects
3232

3333
Request:
3434

35-
.. sourcecode:: HTTP
3635

37-
GET /pictures?filter=[{"name":"picture.meta","op":"jsonb_contains","val":{"location":"Moscow"}}]
36+
.. sourcecode:: http
37+
38+
GET /pictures?filter=[{"name":"picture.meta","op":"jsonb_contains","val":{"location":"Moscow"}}] HTTP/1.1
3839
Accept: application/vnd.api+json
3940

41+
4042
Filter value has to be a valid JSON:
4143

4244
.. sourcecode:: JSON

tests/test_api/test_api_sqla_with_includes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Config:
3838
first_name: Optional[str] = None
3939
last_name: Optional[str] = None
4040
age: Optional[int] = None
41-
email: str | None = None
41+
email: Optional[str] = None
4242

4343

4444
class UserPatchSchema(UserBaseSchema):

0 commit comments

Comments
 (0)