From d8e2a25a82fca2049ae69fcf579b197f6871c81e Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Tue, 25 Jun 2024 23:37:10 +0300 Subject: [PATCH] pkp/pkp-lib#10060 Added nullable validation to multilingual fields --- schemas/context.json | 2 +- schemas/galley.json | 5 +---- schemas/issue.json | 13 +++++++++++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/schemas/context.json b/schemas/context.json index ebc60e29851..73c22b3d79b 100644 --- a/schemas/context.json +++ b/schemas/context.json @@ -50,7 +50,7 @@ "in:publication,representation,issue" ] }, - "default": ["publication"] + "default": ["publication"] }, "doiCreationTime": { "type": "string", diff --git a/schemas/galley.json b/schemas/galley.json index b0aac2e72c5..b48e9c30af7 100644 --- a/schemas/galley.json +++ b/schemas/galley.json @@ -9,10 +9,7 @@ "properties": { "submissionFileId": { "type": "integer", - "apiSummary": true, - "validation": [ - "nullable" - ] + "apiSummary": true }, "doiObject": { "type": "object", diff --git a/schemas/issue.json b/schemas/issue.json index ed6df803e40..64e85cdfb31 100644 --- a/schemas/issue.json +++ b/schemas/issue.json @@ -20,11 +20,17 @@ "coverImage": { "type": "string", "multilingual": true, + "validation": [ + "nullable" + ], "apiSummary": true }, "coverImageAltText": { "type": "string", "multilingual": true, + "validation": [ + "nullable" + ], "apiSummary": true }, "coverImageUrl": { @@ -33,6 +39,7 @@ "apiSummary": true, "readOnly": true, "validation": [ + "nullable", "url" ] }, @@ -52,6 +59,9 @@ "description": { "type": "string", "multilingual": true, + "validation": [ + "nullable" + ], "apiSummary": true }, "doiObject": { @@ -145,6 +155,9 @@ "title": { "type": "string", "multilingual": true, + "validation": [ + "nullable" + ], "apiSummary": true }, "urlPath": {