From e0ad261bfc09c4dbadeb3b32e946346c082005f0 Mon Sep 17 00:00:00 2001 From: sanzc Date: Fri, 1 Mar 2024 22:14:17 +0100 Subject: [PATCH] Define Detail.min_age as Optional[int]. Some title ids like 1112541137 have no min age --- xbox/webapi/api/provider/titlehub/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbox/webapi/api/provider/titlehub/models.py b/xbox/webapi/api/provider/titlehub/models.py index c4d1663..69cc003 100644 --- a/xbox/webapi/api/provider/titlehub/models.py +++ b/xbox/webapi/api/provider/titlehub/models.py @@ -68,7 +68,7 @@ class Detail(CamelCaseModel): developer_name: str genres: Optional[List[str]] = None publisher_name: str - min_age: int + min_age: Optional[int] = None release_date: Optional[datetime] = None short_description: Optional[str] = None vui_display_name: Optional[str] = None