From 19f3eb02cf75de4bd9ca272ea0fcd936019e1ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 24 Sep 2023 16:08:50 +0200 Subject: [PATCH] schemas: Allow translated_string to be a simple string, the underlying code supports it. --- schemas/manifest.v2.schema.json | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/schemas/manifest.v2.schema.json b/schemas/manifest.v2.schema.json index 7c41313b..deaab194 100644 --- a/schemas/manifest.v2.schema.json +++ b/schemas/manifest.v2.schema.json @@ -7,14 +7,21 @@ "type": "object", "$defs": { "translated_string": { - "type": "object", - "required": ["en"], - "additionalProperties": false, - "patternProperties": { - "^[a-z]{2}$": { + "anyOf": [ + { + "type": "object", + "required": ["en"], + "additionalProperties": false, + "patternProperties": { + "^[a-z]{2}$": { + "type": "string" + } + } + }, + { "type": "string" } - } + ] }, "byte_size": { "type": "string",