Browse Source

fix: exclude columns from patch/post request in swagger

pull/7304/head
Pranav C 11 months ago
parent
commit
431a4cd8dc
  1. 4
      packages/nocodb/src/services/api-docs/swagger/getSwaggerColumnMetas.ts
  2. 4
      packages/nocodb/src/services/api-docs/swaggerV2/getSwaggerColumnMetas.ts

4
packages/nocodb/src/services/api-docs/swagger/getSwaggerColumnMetas.ts

@ -52,6 +52,10 @@ export default async (
$ref: `#/components/schemas/Attachment`,
};
break;
case UITypes.LastModifiedTime:
case UITypes.CreatedTime:
field.type = 'string';
break;
default:
field.virtual = false;
SwaggerTypes.setSwaggerType(c, field, dbType);

4
packages/nocodb/src/services/api-docs/swaggerV2/getSwaggerColumnMetas.ts

@ -45,6 +45,10 @@ export default async (
$ref: `#/components/schemas/Attachment`,
};
break;
case UITypes.LastModifiedTime:
case UITypes.CreatedTime:
field.type = 'string';
break;
default:
field.virtual = false;
SwaggerTypes.setSwaggerType(c, field, dbType);

Loading…
Cancel
Save