Skip to content

Commit

Permalink
Merge pull request #16 from regen-network/marie/851-credit-class
Browse files Browse the repository at this point in the history
Update creditClass and fix relative links in customPortableText
  • Loading branch information
blushi authored Apr 19, 2022
2 parents 9a7640f + f36a3dc commit 15a7ece
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
14 changes: 7 additions & 7 deletions schemas/documents/registry/creditClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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(),
},
],
};
1 change: 0 additions & 1 deletion schemas/objects/buyer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export default {
title: 'Buyer',
name: 'buyer',
type: 'object',
validation: Rule => Rule.required(),
fields: [
{
name: 'heroSection',
Expand Down
1 change: 1 addition & 0 deletions schemas/objects/customPortableText.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default {
validation: Rule =>
Rule.uri({
scheme: ['http', 'https', 'mailto', 'tel'],
allowRelative: true,
}),
},
{
Expand Down
1 change: 0 additions & 1 deletion schemas/objects/landSteward.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export default {
title: 'Land Steward',
name: 'landSteward',
type: 'object',
validation: Rule => Rule.required(),
fields: [
{
name: 'heroSection',
Expand Down

0 comments on commit 15a7ece

Please sign in to comment.