Copy changes
This commit is contained in:
parent
91c20213dc
commit
9b82116c61
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue