From 3a6586bba3830879fd94173b5422203d01e22050 Mon Sep 17 00:00:00 2001 From: JeraldJF Date: Fri, 7 Jun 2024 14:39:31 +0530 Subject: [PATCH] Sanketika-Obsrv/issue-tracker#234: fix: schema changes in update api --- .../DatasetStatusTransition/ReadyToPublishSchema.json | 9 ++++++--- .../DatasetUpdate/DatasetUpdateValidationSchema.json | 3 +-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/api-service/src/v2/controllers/DatasetStatusTransition/ReadyToPublishSchema.json b/api-service/src/v2/controllers/DatasetStatusTransition/ReadyToPublishSchema.json index 6bbb24b8..fbcb8391 100644 --- a/api-service/src/v2/controllers/DatasetStatusTransition/ReadyToPublishSchema.json +++ b/api-service/src/v2/controllers/DatasetStatusTransition/ReadyToPublishSchema.json @@ -153,6 +153,9 @@ "type": "object", "minProperties": 1 }, + "required": { + "type": "array" + }, "additionalProperties": { "type": "boolean" } @@ -230,13 +233,13 @@ "type": "string", "minLength": 1 }, - "exclude_fields": { - "type": "array" - }, "redis_db_host": { "type": "string", "minLength": 1 }, + "exclude_fields": { + "type": "array" + }, "redis_db_port": { "type": "integer" }, diff --git a/api-service/src/v2/controllers/DatasetUpdate/DatasetUpdateValidationSchema.json b/api-service/src/v2/controllers/DatasetUpdate/DatasetUpdateValidationSchema.json index 0ce5b66f..7ebc0b7f 100644 --- a/api-service/src/v2/controllers/DatasetUpdate/DatasetUpdateValidationSchema.json +++ b/api-service/src/v2/controllers/DatasetUpdate/DatasetUpdateValidationSchema.json @@ -175,8 +175,7 @@ "type": "string" }, "timestamp_key": { - "type": "string", - "minLength": 1 + "type": "string" }, "file_upload_path": { "type": "array",