System Information
- Strapi Version: v4
- Operating System: Ubuntu
- Database: SQLite
- Node Version: 18.17.1
- NPM Version: 9.6.7
- Yarn Version: /
Hi everyone. Here is the issue:
I need to extend the i18n localisation with an “active” boolean parameter that will be consumed by my backend - I want to give them the option to filter out content with certain locales.
So far I have added the parameter to the schema, in the following path:
src/extensions/i18n/content-types/locale/schema.json
I added the “active” parameter and it works well. I can see it once I create new locales, I can see it in the DB and edit it manually there.
The issue comes when I try to add this parameter in the POST/PUT methods targeting i18n/locales or 18n/locales/id for PUT. I get the following error:
{
"data": null,
"error": {
"status": 400,
"name": "ValidationError",
"message": "this field has unspecified keys: active",
"details": {
"errors": [
{
"path": [],
"message": "this field has unspecified keys: active",
"name": "ValidationError"
}
]
}
}
}