@cv.vg/schemas
Advanced tools
Comparing version 0.1.0-dev.2 to 0.1.0-dev.3
15
main.js
@@ -5,4 +5,8 @@ /** @param {import('joi')} Joi */ | ||
params = Joi.object({ | ||
isDeletable: Joi.boolean() | ||
}), | ||
isDeletable: Joi.boolean(), | ||
webhookSecretType: Joi.string().valid('header', 'param'), | ||
webhookSecretKey: Joi.string().max(255), | ||
webhookSecretValue: Joi.string().max(255) | ||
}) | ||
.and('webhookSecretType', 'webhookSecretKey', 'webhookSecretValue'), | ||
body = Joi.object({ | ||
@@ -26,2 +30,6 @@ conditions: Joi.array().items(Joi.object({ | ||
isPwa: Joi.boolean() | ||
}), | ||
webhook: Joi.object({ | ||
url: Joi.string().uri({ scheme: 'https' }).required(), | ||
body: Joi.array().items(Joi.string().valid('userAgent', 'ip', 'locale')).min(1) | ||
}) | ||
@@ -34,3 +42,4 @@ }) | ||
body | ||
}); | ||
}) | ||
.and('params.webhookSecretType', 'body.webhook'); | ||
Object.assign( | ||
@@ -37,0 +46,0 @@ schemas, { |
{ | ||
"name": "@cv.vg/schemas", | ||
"version": "0.1.0-dev.2", | ||
"version": "0.1.0-dev.3", | ||
"main": "main.js", | ||
@@ -5,0 +5,0 @@ "repository": "ssh://kaki@git.kaki87.net:3021/cv.vg/schemas.git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2025
48