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 6304926 commit 8a84abeCopy full SHA for 8a84abe
openlibrary/fastapi/search.py
@@ -1,7 +1,7 @@
1
from __future__ import annotations
2
3
import json
4
-from typing import Annotated, Any
+from typing import Annotated, Any, Literal
5
6
from fastapi import APIRouter, Depends, Query, Request
7
from fastapi.responses import JSONResponse
@@ -50,8 +50,8 @@ class PublicQueryOptions(BaseModel):
50
person: str | None = None
51
time: str | None = None
52
# from workscheme facet_fields
53
- has_fulltext: bool | None = None
54
- public_scan_b: bool | None = None
+ has_fulltext: Literal['true', 'false'] | None = None
+ public_scan_b: Literal['true', 'false'] | None = None
55
56
"""
57
The day will come when someone asks, why do we have Field wrapping Query
0 commit comments