Fix documentation plugin

This commit is contained in:
Mark Kaylor 2022-07-13 11:19:44 +02:00 committed by Rémi de Juvigny
parent cdfe1fcb25
commit 05c8b0f66e

View File

@ -19,6 +19,11 @@ const cleanSchemaAttributes = (attributes, { typeMap = new Map(), isRequest = fa
delete attributesCopy[prop].default;
}
if (attribute.type === 'customField') {
const customField = strapi.container.get('custom-fields').get(attribute.customField);
attribute.type = customField.type;
}
switch (attribute.type) {
case 'password': {
if (!isRequest) {