Skip to content

Commit

Permalink
Merge pull request #43 from trustenterprises/patch/update-412-validation
Browse files Browse the repository at this point in the history
Added creatorDid and attributes fields (HIP412 validation)
  • Loading branch information
mattsmithies authored Sep 1, 2022
2 parents 37c4940 + 40ed649 commit 8325f68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/validators/createMetadataRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ const schema = Joi.object()

creator: Joi.string().optional(),

creatorDid: Joi.string().optional(),

description: Joi.string().optional(),

image: Joi.string().optional(),
Expand All @@ -38,6 +40,8 @@ const schema = Joi.object()
.optional()
),

attributes: Joi.array().items(Joi.object().optional()),

// Properties seems like a free-for-all 😂
properties: Joi.object()
.keys({
Expand Down

1 comment on commit 8325f68

@vercel
Copy link

@vercel vercel bot commented on 8325f68 Sep 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.