Browse Source

fix: missing validation error message

pull/7569/head
Pranav C 11 months ago
parent
commit
03784e7005
  1. 2
      packages/nocodb/src/helpers/apiHelpers.ts

2
packages/nocodb/src/helpers/apiHelpers.ts

@ -45,7 +45,7 @@ export const validatePayload = (schema: string, payload: any) => {
// If the request body is not valid, throw error
if (!valid) {
const errors: ErrorObject[] | null | undefined = ajv.errors;
const errors: ErrorObject[] | null | undefined = ajv.errors || validate.errors;
// If the request body is invalid, throw error with error message and errors
NcError.ajvValidationError({

Loading…
Cancel
Save