Copy change
This commit is contained in:
parent
5c3973d7f9
commit
5912c2b129
|
@ -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,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue