diff --git a/schemas/documents/registry/creditClass.js b/schemas/documents/registry/creditClass.js index b86a678..839d8d3 100644 --- a/schemas/documents/registry/creditClass.js +++ b/schemas/documents/registry/creditClass.js @@ -30,14 +30,19 @@ export default { name: 'path', type: 'string', description: - 'This will be used in the credit class page url: "/credit-classes/{path}"', + 'This will be used in the credit class page url: "/credit-classes/{path}", it can be a generic handle or an on chain credit class id', + validation: Rule => Rule.required(), + }, + { + title: 'Image', + name: 'image', + type: 'customImage', validation: Rule => Rule.required(), }, { title: 'Description', name: 'description', type: 'customPortableText', - validation: Rule => Rule.required(), }, { title: 'Short Description', @@ -55,14 +60,12 @@ export default { type: 'ecologicalImpactRelation', }, ], - validation: Rule => Rule.required(), }, { title: 'Overview Cards', name: 'overviewCards', type: 'array', of: [{ type: 'card' }], - validation: Rule => Rule.required(), }, { title: 'SDGs', @@ -75,19 +78,16 @@ export default { to: [{ type: 'sdg' }], }, ], - validation: Rule => Rule.required(), }, { title: 'Buyer', name: 'buyer', type: 'buyer', - validation: Rule => Rule.required(), }, { title: 'Land Steward', name: 'landSteward', type: 'landSteward', - validation: Rule => Rule.required(), }, ], }; diff --git a/schemas/objects/buyer.js b/schemas/objects/buyer.js index d85bba0..abc6ea0 100644 --- a/schemas/objects/buyer.js +++ b/schemas/objects/buyer.js @@ -2,7 +2,6 @@ export default { title: 'Buyer', name: 'buyer', type: 'object', - validation: Rule => Rule.required(), fields: [ { name: 'heroSection', diff --git a/schemas/objects/customPortableText.js b/schemas/objects/customPortableText.js index 217a6b8..814c392 100644 --- a/schemas/objects/customPortableText.js +++ b/schemas/objects/customPortableText.js @@ -19,6 +19,7 @@ export default { validation: Rule => Rule.uri({ scheme: ['http', 'https', 'mailto', 'tel'], + allowRelative: true, }), }, { diff --git a/schemas/objects/landSteward.js b/schemas/objects/landSteward.js index fb3c235..032616b 100644 --- a/schemas/objects/landSteward.js +++ b/schemas/objects/landSteward.js @@ -2,7 +2,6 @@ export default { title: 'Land Steward', name: 'landSteward', type: 'object', - validation: Rule => Rule.required(), fields: [ { name: 'heroSection',