I am using the plug in of the documentation in strapi, it catches my attention that for entity it generates two schemas to each entity. Example:
UsersPermissionsUser and NewUsersPermissionsUser
"components": {
"schemas": {
"UsersPermissionsUser": {
"required": [
"id",
"username",
"e-mail"
],
"properties": {
"id": {
"type": "string"
},
"username": {
"type": "string",
"minLength": 3
},
"email": {
"type": "string",
"minLength": 6
},
"provider": {
"type": "string"
},
"confirmed": {
"type": "boolean",
"default": false
},
"blocked": {
"type": "boolean",
"default": false
},
"role": {
"required": [
"id",
"yam"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"type": {
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"type": "string"
}
},
"users": {
"type": "array",
"items": {
"type": "string"
}
},
"created_by": {
"type": "string"
},
"updated_by": {
"type": "string"
}
}
},
"categories": {
"required": [
"id"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"products": {
"type": "array",
"items": {
"type": "string"
}
},
"published_at": {
"type": "string"
},
"created_by": {
"type": "string"
},
"updated_by": {
"type": "string"
}
}
}
}
},
"NewUsersPermissionsUser": {
"required": [
"username",
"e-mail"
],
"properties": {
"username": {
"type": "string",
"minLength": 3
},
"email": {
"type": "string",
"minLength": 6
},
"provider": {
"type": "string"
},
"password": {
"type": "string",
"format": "password",
"minLength": 6
},
"resetPasswordToken": {
"type": "string"
},
"confirmationToken": {
"type": "string"
},
"confirmed": {
"type": "boolean",
"default": false
},
"blocked": {
"type": "boolean",
"default": false
},
"role": {
"type": "string"
},
"categories": {
"type": "string"
},
"created_by": {
"type": "string"
},
"updated_by": {
"type": "string"
}
}
}
}
}
That is an error? I can’t see what difference there is between the NewUsersPermissionsUser and UsersPermissionsUser schema, Why it generates two schemas for each entity?
Thank you!
System Information
- 3.6.1:
- Windows:
- Postgres:
- 14.17.3: