From 39b34b6f573a0047d31a215012dd6977ceba914f Mon Sep 17 00:00:00 2001 From: Chris Valenzuela Date: Wed, 26 Jun 2024 17:46:00 +1200 Subject: [PATCH] feat: made each part of sponsors required --- .../sponsor/content-types/sponsor/schema.json | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/strapi/src/api/sponsor/content-types/sponsor/schema.json b/strapi/src/api/sponsor/content-types/sponsor/schema.json index 4072ca6..b09f646 100644 --- a/strapi/src/api/sponsor/content-types/sponsor/schema.json +++ b/strapi/src/api/sponsor/content-types/sponsor/schema.json @@ -4,7 +4,8 @@ "info": { "singularName": "sponsor", "pluralName": "sponsors", - "displayName": "Sponsor" + "displayName": "Sponsor", + "description": "" }, "options": { "draftAndPublish": true @@ -12,17 +13,20 @@ "pluginOptions": {}, "attributes": { "Name": { - "type": "string" + "type": "string", + "required": true, + "unique": true }, "Logo": { + "type": "media", + "multiple": false, + "required": true, "allowedTypes": [ "images", "files", "videos", "audios" - ], - "type": "media", - "multiple": false + ] }, "Type": { "type": "enumeration", @@ -32,7 +36,8 @@ "Bronze", "Tech", "Community" - ] + ], + "required": true } } }