From 12c4b2dd0d2abb025307550dce0a8d703411734b Mon Sep 17 00:00:00 2001 From: Egor Yakovlev Date: Fri, 2 Oct 2026 16:29:08 +0200 Subject: [PATCH] File: optional width/height for visual files --- services/ontology/schemas/file.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/services/ontology/schemas/file.json b/services/ontology/schemas/file.json index 028e8240c..e45a8d7c0 100644 --- a/services/ontology/schemas/file.json +++ b/services/ontology/schemas/file.json @@ -31,6 +31,16 @@ "minimum": 0, "description": "File size in bytes" }, + "width": { + "type": "integer", + "minimum": 1, + "description": "Pixel width of the image or video, as stored. Optional; present only for visual files. Lets a reader reserve the correct space before the bytes arrive." + }, + "height": { + "type": "integer", + "minimum": 1, + "description": "Pixel height of the image or video, as stored. Optional; present only for visual files. Paired with width." + }, "md5Hash": { "type": "string", "description": "MD5 hash of the file content for integrity verification"