Copy change

This commit is contained in:
Adria Navarro 2024-05-31 13:30:05 +02:00
parent 5c3973d7f9
commit 5912c2b129
2 changed files with 2 additions and 3 deletions

View File

@ -349,8 +349,7 @@ describe.each([
await config.api.viewV2.create(newView, { await config.api.viewV2.create(newView, {
status: 400, status: 400,
body: { body: {
message: message: 'You can\'t make the required field "name" read only',
'Field "name" cannot be readonly as it is a required field',
status: 400, status: 400,
}, },
}) })

View File

@ -60,7 +60,7 @@ async function guardViewSchema(
if (isRequired(tableSchemaField.constraints)) { if (isRequired(tableSchemaField.constraints)) {
throw new HTTPError( throw new HTTPError(
`Field "${field}" cannot be readonly as it is a required field`, `You can't make the required field "${field}" read only`,
400 400
) )
} }