System Information
- Strapi Version: 4
- Operating System: MAC
- Database: Postgres
- Node Version: 20.13
- NPM Version: 10.5
I recently made some changes to the User schema in the Users & Permissions plugin. However, the Documentation Plugin is unable to see these changes and update the OpenAPI file.
Below is the schema:
{
"kind": "collectionType",
"collectionName": "up_users",
"info": {
"name": "user",
"description": "",
"singularName": "user",
"pluralName": "users",
"displayName": "User"
},
"options": {
"draftAndPublish": false
},
"attributes": {
"name": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"surname": {
"type": "string",
"minLength": 3,
"unique": true,
"configurable": false,
"required": true
},
"email": {
"type": "email",
"minLength": 6,
"configurable": false,
"required": true
},
"provider": {
"type": "string",
"configurable": false
},
"password": {
"type": "password",
"minLength": 6,
"configurable": false,
"private": true,
"searchable": false
},
"resetPasswordToken": {
"type": "string",
"configurable": false,
"private": true,
"searchable": false
},
"confirmationToken": {
"type": "string",
"configurable": false,
"private": true,
"searchable": false
},
"confirmed": {
"type": "boolean",
"default": false,
"configurable": false
},
"blocked": {
"type": "boolean",
"default": false,
"configurable": false
},
"role": {
"type": "relation",
"relation": "manyToOne",
"target": "plugin::users-permissions.role",
"inversedBy": "users",
"configurable": false
},
"phoneNumber": {
"type": "string",
"maxLength": 8,
"minLength": 8
},
"addressPostalCode": {
"type": "string",
"required": false,
"maxLength": 8,
"minLength": 8
},
"addressState": {
"type": "string",
"required": false,
"maxLength": 2,
"minLength": 2
},
"addressCity": {
"type": "string",
"maxLength": 30
},
"addressNeighborhood": {
"type": "string",
"maxLength": 30
},
"addressStreet": {
"type": "string",
"maxLength": 100
},
"addressNumber": {
"type": "integer"
},
"addressComplement": {
"type": "string",
"maxLength": 100
}
}
}
Does anyone have any ideas on what can be done?