Skip to content

Commit

Permalink
feat: Adding contract and category to dispute type
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhb committed Jun 6, 2024
1 parent 91a57cc commit 869d901
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@socious/data",
"version": "1.0.83",
"version": "1.0.84",
"description": "Data definitions for Socious API",
"type": "module",
"main": "./src/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ export const DisputeSchema = Joi.object({
title: Joi.string().required(),
description: Joi.string(),
respondent_id: Joi.string().uuid().required(),
category_id: Joi.string().uuid().required(),
contract_id: Joi.string().uuid().required(),
evidences: Joi.array().items(Joi.string().uuid()),
});

Expand Down

0 comments on commit 869d901

Please sign in to comment.