From 51b0bdf12f622818e92155560e9d6412ddb701f5 Mon Sep 17 00:00:00 2001 From: Pranav C <61551451+pranavxc@users.noreply.github.com> Date: Mon, 2 Aug 2021 15:43:22 +0530 Subject: [PATCH] fix(swagger): allow all type of id values re #410 Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com> --- .../sqlMgr/code/routers/xc-ts/SwaggerXc.ts | 20 ++++++++----------- 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts b/packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts index 6845e95ca1..61d1d62174 100644 --- a/packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts +++ b/packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts @@ -217,10 +217,9 @@ class SwaggerXc extends BaseRender { { "name": `${this.ctx._tn}Id`, "in": "path", - "description": `ID of ${this.ctx._tn} to return`, + "description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, "required": true, - "type": "integer", - "format": "int64" + "type": "String" }, { "in": "query", @@ -273,10 +272,9 @@ class SwaggerXc extends BaseRender { { "name": `${this.ctx._tn}Id`, "in": "path", - "description": `ID of ${this.ctx._tn} to return`, + "description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, "required": true, - "type": "integer", - "format": "int64" + "type": "String" }, { "in": "body", @@ -308,10 +306,9 @@ class SwaggerXc extends BaseRender { { "name": `${this.ctx._tn}Id`, "in": "path", - "description": `ID of ${this.ctx._tn} to return`, + "description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, "required": true, - "type": "integer", - "format": "int64" + "type": "String" } ], "responses": { @@ -503,10 +500,9 @@ class SwaggerXc extends BaseRender { { "name": `${this.ctx._tn}Id`, "in": "path", - "description": `ID of ${this.ctx._tn}`, + "description": `ID of ${this.ctx._tn} to return. In case of composite key provide keys separated by ___`, "required": true, - "type": "integer", - "format": "int64" + "type": "String" } ], "responses": {