From 8fcd5c4a2522b637a421e7505a214d435b6f3289 Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Fri, 17 May 2024 00:21:54 +0200 Subject: [PATCH] Adjusted the file to validate article description --- resources/schemas/index.json | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/resources/schemas/index.json b/resources/schemas/index.json index f762800..67039fa 100644 --- a/resources/schemas/index.json +++ b/resources/schemas/index.json @@ -13,7 +13,30 @@ "type": "string" }, "description": { - "type": "string" + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "properties": { + "text": { + "type": "string" + }, + "generator": { + "type": "string" + }, + "model": { + "type": "string" + }, + "edited": { + "type": "boolean" + } + }, + "required": ["text", "generator", "model", "edited"], + "additionalProperties": false + } + ] }, "date": { "type": "string",