From bbc7695e697ab93dfeb643f99642b02605f32267 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 4 Mar 2023 22:59:52 +0530 Subject: [PATCH] fix: remove title from required list and allow empty string as well Signed-off-by: Pranav C --- packages/nocodb-sdk/src/lib/Api.ts | 2 +- packages/nocodb/src/schema/swagger.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/nocodb-sdk/src/lib/Api.ts b/packages/nocodb-sdk/src/lib/Api.ts index a8a25845bf..8e0b5efd1e 100644 --- a/packages/nocodb-sdk/src/lib/Api.ts +++ b/packages/nocodb-sdk/src/lib/Api.ts @@ -2026,7 +2026,7 @@ export interface TableReqType { * Table title * @example My Table */ - title: string; + title?: string; } /** diff --git a/packages/nocodb/src/schema/swagger.json b/packages/nocodb/src/schema/swagger.json index 90cc9ee100..b81724b28a 100644 --- a/packages/nocodb/src/schema/swagger.json +++ b/packages/nocodb/src/schema/swagger.json @@ -13581,11 +13581,11 @@ "description": "Table title", "example": "My Table", "maxLength": 255, - "minLength": 1, + "minLength": 0, "type": "string" } }, - "required": ["columns", "table_name", "title"], + "required": ["columns", "table_name"], "title": "Table Request Model", "type": "object" },