Merge pull request #2864 from rommapp/nullable-metadata-fields

[HOTFIX] Set metadata fields as nullable
This commit is contained in:
Georges-Antoine Assi
2026-01-10 11:02:30 -05:00
committed by GitHub
8 changed files with 18 additions and 18 deletions

View File

@@ -46,14 +46,14 @@ class FlashpointGame(TypedDict):
class FlashpointMetadata(TypedDict):
franchises: list[str]
companies: list[str]
source: str
source: str | None
genres: list[str]
first_release_date: str
game_modes: list[str]
status: str
version: str
language: str
notes: str
status: str | None
version: str | None
language: str | None
notes: str | None
class FlashpointRom(TypedDict):

View File

@@ -71,8 +71,8 @@ class IGDBRelatedGame(TypedDict):
class IGDBMetadata(TypedDict):
total_rating: str
aggregated_rating: str
total_rating: str | None
aggregated_rating: str | None
first_release_date: int | None
youtube_video_id: str | None
genres: list[str]

View File

@@ -43,7 +43,7 @@ class MobyMetadataPlatform(TypedDict):
class MobyMetadata(TypedDict):
moby_score: str
moby_score: str | None
genres: list[str]
alternate_titles: list[str]
platforms: list[MobyMetadataPlatform]

View File

@@ -121,7 +121,7 @@ class SSMetadataMedia(TypedDict):
class SSMetadata(SSMetadataMedia):
ss_score: str
ss_score: str | None
first_release_date: int | None
alternative_names: list[str]
companies: list[str]

View File

@@ -5,13 +5,13 @@
export type RomFlashpointMetadata = {
franchises?: Array<string>;
companies?: Array<string>;
source?: string;
source?: (string | null);
genres?: Array<string>;
first_release_date?: string;
game_modes?: Array<string>;
status?: string;
version?: string;
language?: string;
notes?: string;
status?: (string | null);
version?: (string | null);
language?: (string | null);
notes?: (string | null);
};

View File

@@ -6,8 +6,8 @@ import type { IGDBAgeRating } from './IGDBAgeRating';
import type { IGDBMetadataPlatform } from './IGDBMetadataPlatform';
import type { IGDBRelatedGame } from './IGDBRelatedGame';
export type RomIGDBMetadata = {
total_rating?: string;
aggregated_rating?: string;
total_rating?: (string | null);
aggregated_rating?: (string | null);
first_release_date?: (number | null);
youtube_video_id?: (string | null);
genres?: Array<string>;

View File

@@ -4,7 +4,7 @@
/* eslint-disable */
import type { MobyMetadataPlatform } from './MobyMetadataPlatform';
export type RomMobyMetadata = {
moby_score?: string;
moby_score?: (string | null);
genres?: Array<string>;
alternate_titles?: Array<string>;
platforms?: Array<MobyMetadataPlatform>;

View File

@@ -29,7 +29,7 @@ export type RomSSMetadata = {
marquee_path?: (string | null);
logo_path?: (string | null);
video_path?: (string | null);
ss_score?: string;
ss_score?: (string | null);
first_release_date?: (number | null);
alternative_names?: Array<string>;
companies?: Array<string>;