From f2b0c5985d0380127bb50c2b722c76eff67e9dbd Mon Sep 17 00:00:00 2001 From: Roman Kalyakin Date: Thu, 14 Nov 2024 19:42:07 +0100 Subject: [PATCH] made fields except uid optional --- src/schema/schemasPublic/Collection.json | 2 +- src/schema/schemasPublic/ContentItem.json | 14 +------------- src/schema/schemasPublic/EntityDetails.json | 3 ++- src/schema/schemasPublic/EntityMention.json | 6 ++---- src/schema/schemasPublic/Newspaper.json | 2 +- src/schema/schemasPublic/TextReuseCluster.json | 2 +- src/schema/schemasPublic/TextReusePassage.json | 2 +- src/schema/schemasPublic/TopicMention.json | 2 +- src/schema/schemasPublic/VersionDetails.json | 3 ++- 9 files changed, 12 insertions(+), 24 deletions(-) diff --git a/src/schema/schemasPublic/Collection.json b/src/schema/schemasPublic/Collection.json index 9e6f7c27..72810bca 100644 --- a/src/schema/schemasPublic/Collection.json +++ b/src/schema/schemasPublic/Collection.json @@ -37,5 +37,5 @@ "description": "Total number of items in the collection." } }, - "required": ["uid", "title", "description", "accessLevel", "createdAt", "updatedAt", "totalItems"] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/ContentItem.json b/src/schema/schemasPublic/ContentItem.json index ad213fc0..a584e41d 100644 --- a/src/schema/schemasPublic/ContentItem.json +++ b/src/schema/schemasPublic/ContentItem.json @@ -84,17 +84,5 @@ "enum": ["newspaper"] } }, - "required": [ - "uid", - "type", - "title", - "transcript", - "locations", - "persons", - "topics", - "transcriptLength", - "totalPages", - "isOnFrontPage", - "publicationDate" - ] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/EntityDetails.json b/src/schema/schemasPublic/EntityDetails.json index 1e2eacf5..fa57dd4f 100644 --- a/src/schema/schemasPublic/EntityDetails.json +++ b/src/schema/schemasPublic/EntityDetails.json @@ -29,5 +29,6 @@ "type": "integer", "description": "Total number of content items the entity is mentioned in." } - } + }, + "required": ["uid"] } diff --git a/src/schema/schemasPublic/EntityMention.json b/src/schema/schemasPublic/EntityMention.json index 93cc468b..dc929b84 100644 --- a/src/schema/schemasPublic/EntityMention.json +++ b/src/schema/schemasPublic/EntityMention.json @@ -11,10 +11,8 @@ }, "relevance": { "type": "number", - "description": "Relevance of the entity in the document", - "minimum": 0, - "maximum": 1 + "description": "Relevance of the entity in the document" } }, - "required": ["uid", "relevance"] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/Newspaper.json b/src/schema/schemasPublic/Newspaper.json index a23bb631..715b1683 100644 --- a/src/schema/schemasPublic/Newspaper.json +++ b/src/schema/schemasPublic/Newspaper.json @@ -46,5 +46,5 @@ "minimum": 0 } }, - "required": ["uid", "title", "languageCodes", "totalArticles", "totalIssues", "totalPages"] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/TextReuseCluster.json b/src/schema/schemasPublic/TextReuseCluster.json index fa647f71..aa535382 100644 --- a/src/schema/schemasPublic/TextReuseCluster.json +++ b/src/schema/schemasPublic/TextReuseCluster.json @@ -43,5 +43,5 @@ "required": ["startDate", "endDate"] } }, - "required": ["uid", "lexicalOverlap", "clusterSize", "textSample", "timeCoverage"] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/TextReusePassage.json b/src/schema/schemasPublic/TextReusePassage.json index 134f3f60..e64b4c44 100644 --- a/src/schema/schemasPublic/TextReusePassage.json +++ b/src/schema/schemasPublic/TextReusePassage.json @@ -33,5 +33,5 @@ "required": ["start", "end"] } }, - "required": ["uid", "content", "contentItemId", "offset"] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/TopicMention.json b/src/schema/schemasPublic/TopicMention.json index 9e353e37..c57dfe95 100644 --- a/src/schema/schemasPublic/TopicMention.json +++ b/src/schema/schemasPublic/TopicMention.json @@ -16,5 +16,5 @@ "maximum": 1 } }, - "required": ["uid", "relevance"] + "required": ["uid"] } diff --git a/src/schema/schemasPublic/VersionDetails.json b/src/schema/schemasPublic/VersionDetails.json index 2d9824cc..08ab29d5 100644 --- a/src/schema/schemasPublic/VersionDetails.json +++ b/src/schema/schemasPublic/VersionDetails.json @@ -9,5 +9,6 @@ "type": "string", "description": "Version of the API." } - } + }, + "required": ["version"] }