Copy changes

This commit is contained in:
Adria Navarro 2024-06-04 10:39:56 +02:00
parent 91c20213dc
commit 9b82116c61
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -76,7 +76,7 @@ async function guardViewSchema(
const viewSchemaField = viewSchema[field.name]
if (viewSchemaField?.readonly) {
throw new HTTPError(
`You can't make read only the required field "${field.name}"`,
`You can't make field "${field.name}" readonly because it is a required field.`,
400
)
}