Browse Source

fix: type and schema name corrections

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5174/head
Pranav C 2 years ago
parent
commit
19f773fae0
  1. 2
      packages/nocodb-sdk/src/lib/Api.ts
  2. 6
      packages/nocodb/src/lib/meta/api/filterApis.ts
  3. 4
      packages/nocodb/src/lib/meta/api/hookFilterApis.ts
  4. 4
      packages/nocodb/src/lib/meta/api/sortApis.ts
  5. 9
      scripts/sdk/swagger.json

2
packages/nocodb-sdk/src/lib/Api.ts

@ -621,7 +621,7 @@ export interface HookReqType {
id?: string;
fk_model_id?: string;
title: string;
description?: string;
description?: string | null;
env?: string;
event: 'after' | 'before';
operation: 'insert' | 'delete' | 'update';

6
packages/nocodb/src/lib/meta/api/filterApis.ts

@ -136,7 +136,7 @@ router.get(
router.post(
'/api/v1/db/meta/views/:viewId/filters',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/filterReq'),
getAjvValidatorMw('swagger.json#/components/schemas/FilterReq'),
ncMetaAclMw(filterCreate, 'filterCreate')
);
@ -147,7 +147,7 @@ router.get(
router.post(
'/api/v1/db/meta/hooks/:hookId/filters',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/filterReq'),
getAjvValidatorMw('swagger.json#/components/schemas/FilterReq'),
ncMetaAclMw(hookFilterCreate, 'filterCreate')
);
@ -159,7 +159,7 @@ router.get(
router.patch(
'/api/v1/db/meta/filters/:filterId',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/filterReq'),
getAjvValidatorMw('swagger.json#/components/schemas/FilterReq'),
ncMetaAclMw(filterUpdate, 'filterUpdate')
);
router.delete(

4
packages/nocodb/src/lib/meta/api/hookFilterApis.ts

@ -118,7 +118,7 @@ router.get(
router.post(
'/hooks/:hookId/filters/',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/filterReq'),
getAjvValidatorMw('swagger.json#/components/schemas/FilterReq'),
ncMetaAclMw(filterCreate, 'filterCreate')
);
router.get(
@ -129,7 +129,7 @@ router.get(
router.patch(
'/hooks/:hookId/filters/:filterId',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/filterReq'),
getAjvValidatorMw('swagger.json#/components/schemas/FilterReq'),
ncMetaAclMw(filterUpdate, 'filterUpdate')
);
router.delete(

4
packages/nocodb/src/lib/meta/api/sortApis.ts

@ -59,7 +59,7 @@ router.get(
router.post(
'/api/v1/db/meta/views/:viewId/sorts/',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/sortReq'),
getAjvValidatorMw('swagger.json#/components/schemas/SortReq'),
ncMetaAclMw(sortCreate, 'sortCreate')
);
router.get(
@ -70,7 +70,7 @@ router.get(
router.patch(
'/api/v1/db/meta/sorts/:sortId',
metaApiMetrics,
getAjvValidatorMw('swagger.json#/components/schemas/sortReq'),
getAjvValidatorMw('swagger.json#/components/schemas/SortReq'),
ncMetaAclMw(sortUpdate, 'sortUpdate')
);
router.delete(

9
scripts/sdk/swagger.json

@ -9681,7 +9681,14 @@
"type": "string"
},
"description": {
"type": "string"
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"env": {
"type": "string"

Loading…
Cancel
Save