Copy changes
This commit is contained in:
parent
91c20213dc
commit
9b82116c61
|
@ -345,7 +345,8 @@ describe.each([
|
||||||
await config.api.viewV2.create(newView, {
|
await config.api.viewV2.create(newView, {
|
||||||
status: 400,
|
status: 400,
|
||||||
body: {
|
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,
|
status: 400,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -76,7 +76,7 @@ async function guardViewSchema(
|
||||||
const viewSchemaField = viewSchema[field.name]
|
const viewSchemaField = viewSchema[field.name]
|
||||||
if (viewSchemaField?.readonly) {
|
if (viewSchemaField?.readonly) {
|
||||||
throw new HTTPError(
|
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
|
400
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue