Skip to content

Commit 9b453e6

Browse files
committed
fix Genshin api response data validate
1 parent 7a23f0e commit 9b453e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/stream.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Game(BaseModel):
2222
id: str
2323

2424
class PreDownload(BaseModel):
25-
major: "Major"
25+
major: Optional["Major"]
2626
patches: List["Patch"]
2727

2828
class Main(BaseModel):
@@ -200,4 +200,4 @@ def parse_args():
200200
os.makedirs(args.output_dir)
201201

202202
asyncio.run(download(urls))
203-
203+

0 commit comments

Comments
 (0)