fix: ignore locale field in api tests

This commit is contained in:
Marc-Roig 2024-01-10 11:01:21 +01:00
parent af3e1c0492
commit 856dfd8ee5
No known key found for this signature in database
GPG Key ID: FB4E2C43A0BEE249
2 changed files with 3 additions and 0 deletions

View File

@ -745,6 +745,7 @@ describe('Core API - Validate', () => {
const allDocumentFields = [
// TODO: Document id should not be in attributes
'documentId',
'locale',
'name',
'name_non_searchable',
'misc',

View File

@ -115,6 +115,8 @@ const userSchemaAdditions = () => {
'publishedAt',
'strapi_stage',
'strapi_assignee',
'locale',
'localizations',
];
return currentSchema.filter((key) => !(ignoreDiffs.includes(key) || defaultSchema.includes(key)));