Skip to content

Commit

Permalink
Merge pull request #28 from tokenguardio/dapp-analytics-dev
Browse files Browse the repository at this point in the history
Release 3.1.1
  • Loading branch information
rrozek authored Jul 11, 2024
2 parents 14b2660 + 2fa7130 commit 6c34c60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dashboard-creator-server",
"private": false,
"version": "3.1.0",
"version": "3.1.1",
"license": "MIT",
"main": "src/server.ts",
"engines": {
Expand Down
18 changes: 13 additions & 5 deletions src/components/dapp-analytics/dapp-analytics.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,26 @@ export const dappDataMetricsValidation = {
args: Joi.object().pattern(
Joi.string(),
Joi.object({
type: Joi.string().valid('integer', 'string', 'boolean').required(),
type: Joi.string()
.valid('integer', 'number', 'string', 'boolean')
.required(),
conditions: Joi.array().items(
Joi.object({
operator: Joi.string()
.valid('>', '<', '>=', '<=', '=', '!=')
.required(),
value: Joi.alternatives()
.try(Joi.number(), Joi.string(), Joi.boolean())
.required(),
value: Joi.alternatives().try(
Joi.boolean(),
Joi.number(),
Joi.string().allow(''),
),
}),
),
value: Joi.alternatives().try(Joi.string(), Joi.boolean()),
value: Joi.alternatives().try(
Joi.boolean(),
Joi.number(),
Joi.string().allow(''),
),
}),
),
}),
Expand Down

0 comments on commit 6c34c60

Please sign in to comment.