Browse Source

feat(nocodb): add getAjvValidatorMw on view update

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
f480b3b0dc
  1. 2
      packages/nocodb/src/lib/meta/api/viewApis.ts

2
packages/nocodb/src/lib/meta/api/viewApis.ts

@ -14,6 +14,7 @@ import View from '../../models/View';
import ncMetaAclMw from '../helpers/ncMetaAclMw';
import { xcVisibilityMetaGet } from './modelVisibilityApis';
import { metaApiMetrics } from '../helpers/apiMetrics';
import { getAjvValidatorMw } from './helpers';
// @ts-ignore
export async function viewGet(req: Request, res: Response<Table>) {}
@ -109,6 +110,7 @@ router.get(
);
router.patch(
'/api/v1/db/meta/views/:viewId',
getAjvValidatorMw('swagger.json#/components/schemas/ViewReq'),
metaApiMetrics,
ncMetaAclMw(viewUpdate, 'viewUpdate')
);

Loading…
Cancel
Save