This commit is contained in:
Adria Navarro 2024-06-04 11:35:09 +02:00
parent 819cc6bebb
commit aefedce568
2 changed files with 5 additions and 3 deletions

View File

@ -1424,7 +1424,8 @@ describe.each([
status: 400, status: 400,
body: { body: {
status: 400, status: 400,
message: 'Required field "name" is missing in view "view a"', message:
'To make field "name" required, this field must be present and writable in views: view a.',
}, },
} }
) )
@ -1454,7 +1455,8 @@ describe.each([
status: 400, status: 400,
body: { body: {
status: 400, status: 400,
message: 'Required field "name" is missing in view "view a"', message:
'To make field "name" required, this field must be present and writable in views: view a.',
}, },
} }
) )

View File

@ -30,7 +30,7 @@ const validateViewSchemas: CustomValidator<Table> = (table, helpers) => {
) )
if (missingField) { if (missingField) {
return helpers.message({ return helpers.message({
custom: `Required field "${missingField}" is missing in view "${view.name}"`, custom: `To make field "${missingField}" required, this field must be present and writable in views: ${view.name}.`,
}) })
} }
} }