From 8e4f26c07e22c613c4f2be49c6cefc224dab9e40 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 22 Dec 2024 20:39:18 -0500 Subject: [PATCH] Add hash to pydantic types for rom file --- backend/endpoints/responses/rom.py | 3 +++ frontend/src/__generated__/models/RomFileSchema.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/backend/endpoints/responses/rom.py b/backend/endpoints/responses/rom.py index 5eece3884..1408fe8eb 100644 --- a/backend/endpoints/responses/rom.py +++ b/backend/endpoints/responses/rom.py @@ -101,6 +101,9 @@ class RomFileSchema(BaseModel): created_at: datetime updated_at: datetime last_modified: datetime + crc_hash: str | None + md5_hash: str | None + sha1_hash: str | None class Config: from_attributes = True diff --git a/frontend/src/__generated__/models/RomFileSchema.ts b/frontend/src/__generated__/models/RomFileSchema.ts index c8186463d..4a380b207 100644 --- a/frontend/src/__generated__/models/RomFileSchema.ts +++ b/frontend/src/__generated__/models/RomFileSchema.ts @@ -12,5 +12,8 @@ export type RomFileSchema = { created_at: string; updated_at: string; last_modified: string; + crc_hash: (string | null); + md5_hash: (string | null); + sha1_hash: (string | null); };