diff --git a/packages/nocodb/src/lib/meta/api/viewApis.ts b/packages/nocodb/src/lib/meta/api/viewApis.ts index b062a2b2ef..73c72546a3 100644 --- a/packages/nocodb/src/lib/meta/api/viewApis.ts +++ b/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) {} @@ -109,6 +110,7 @@ router.get( ); router.patch( '/api/v1/db/meta/views/:viewId', + getAjvValidatorMw('swagger.json#/components/schemas/ViewReq'), metaApiMetrics, ncMetaAclMw(viewUpdate, 'viewUpdate') );