Browse Source

fix(swagger): allow all type of id values

re #410

Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
pull/414/head
Pranav C 3 years ago
parent
commit
51b0bdf12f
  1. 20
      packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts

20
packages/nocodb/src/lib/sqlMgr/code/routers/xc-ts/SwaggerXc.ts

@ -217,10 +217,9 @@ class SwaggerXc extends BaseRender {
{ {
"name": `${this.ctx._tn}Id`, "name": `${this.ctx._tn}Id`,
"in": "path", "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, "required": true,
"type": "integer", "type": "String"
"format": "int64"
}, },
{ {
"in": "query", "in": "query",
@ -273,10 +272,9 @@ class SwaggerXc extends BaseRender {
{ {
"name": `${this.ctx._tn}Id`, "name": `${this.ctx._tn}Id`,
"in": "path", "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, "required": true,
"type": "integer", "type": "String"
"format": "int64"
}, },
{ {
"in": "body", "in": "body",
@ -308,10 +306,9 @@ class SwaggerXc extends BaseRender {
{ {
"name": `${this.ctx._tn}Id`, "name": `${this.ctx._tn}Id`,
"in": "path", "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, "required": true,
"type": "integer", "type": "String"
"format": "int64"
} }
], ],
"responses": { "responses": {
@ -503,10 +500,9 @@ class SwaggerXc extends BaseRender {
{ {
"name": `${this.ctx._tn}Id`, "name": `${this.ctx._tn}Id`,
"in": "path", "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, "required": true,
"type": "integer", "type": "String"
"format": "int64"
} }
], ],
"responses": { "responses": {

Loading…
Cancel
Save