From 0067791a78eee4159ce7da10cebaa21c5c5baccb Mon Sep 17 00:00:00 2001 From: Marie Gauthier Date: Mon, 18 Mar 2024 12:12:50 +0100 Subject: [PATCH] chore: update project title and description to prefer slug (#57) * chore: add max to projectPrefinancing.supportEnables * chore: update project.projectId description and title --- schemas/documents/shared/project.js | 4 ++-- schemas/objects/projectPrefinancing.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/schemas/documents/shared/project.js b/schemas/documents/shared/project.js index 5078573..5a172ab 100644 --- a/schemas/documents/shared/project.js +++ b/schemas/documents/shared/project.js @@ -4,10 +4,10 @@ export default { type: 'document', fields: [ { - title: 'Project id, uuid or slug', + title: 'Project slug, on-chain id or off-chain uuid', name: 'projectId', type: 'string', - description: 'on-chain project id, off-chain uuid or slug', + description: 'Slug should be the prefered option if the project has a slug, otherwise it might result in the data below not being displayed on the project page.', validation: Rule => Rule.required(), }, { diff --git a/schemas/objects/projectPrefinancing.js b/schemas/objects/projectPrefinancing.js index 973cada..053b653 100644 --- a/schemas/objects/projectPrefinancing.js +++ b/schemas/objects/projectPrefinancing.js @@ -75,7 +75,7 @@ export default { type: 'text', }, ], - validation, + validation: Rule => validation(Rule).max(6), }, ], };