Feat(Fortune): More json file checker #57

Merged
tobiichi3227 merged 3 commits from feat/more-checkers into main 2025-02-25 16:23:14 +00:00
Showing only changes of commit afff594e8b - Show all commits

View File

@@ -169,7 +169,11 @@ event_names = set()
event_dates = set()
def check_structure(event: dict, idx: int):
def check_structure(event, idx: int):
if not isinstance(event, dict):
errors[idx].append("should be a dict")
return False
if not require_field_check(
event,
idx,