File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class EpicGameData(BaseModel):
112
112
effective_date : datetime = Field (alias = "effectiveDate" )
113
113
offer_type : str = Field (alias = "offerType" )
114
114
expiry_date : datetime | None = Field (None , alias = "expiryDate" )
115
- viewable_date : datetime = Field (alias = "viewableDate" )
115
+ viewable_date : datetime | None = Field (None , alias = "viewableDate" )
116
116
status : str
117
117
is_code_redemption_only : bool = Field (alias = "isCodeRedemptionOnly" )
118
118
key_images : list [KeyImage ] = Field (alias = "keyImages" )
@@ -131,7 +131,7 @@ class EpicGameData(BaseModel):
131
131
132
132
class Config :
133
133
allow_population_by_field_name = True
134
-
134
+ validate_by_name = True
135
135
136
136
class FormattedGame (BaseModel ):
137
137
game_title : str
You can’t perform that action at this time.
0 commit comments