@sinet/validation
Advanced tools
Comparing version 1.3.13 to 1.3.14
{ | ||
"name": "@sinet/validation", | ||
"version": "1.3.13", | ||
"version": "1.3.14", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,2 +6,4 @@ 'use strict'; | ||
var signatureInfo = { | ||
'id' : Joi.string().guid().optional().description( 'unique id for each signature added' ), | ||
'userId' : Joi.number().integer().required().description( 'personnel id of the one signing' ), | ||
'sign' : Joi.string().required().description( 'string that the user inputs for digital signatures' ), | ||
@@ -29,3 +31,12 @@ 'date' : Joi.date().timestamp().raw().required().description( 'The date of which the user signed the observation' ), | ||
.keys( signatureInfo ) ) | ||
.description( 'digital signature info for observee' ), | ||
'reviewers' : Joi | ||
.array() | ||
.optional() | ||
.items( Joi | ||
.object() | ||
.optional() | ||
.keys( signatureInfo ) ) | ||
.description( 'digital signature info for observee' ) | ||
}; |
@@ -8,3 +8,3 @@ 'use strict'; | ||
'resourceId' : Joi.any().required().description( 'The id for the resource itself (e.g. contentId, groupId, fileId )' ), | ||
'type' : Joi.any().required().valid( [ 1, 2, 3 ] ).description( 'The resource type (e.g. 1 for content, 2 for files, 3 for mc)' ), | ||
'type' : Joi.any().required().valid( [ 1, 2, 3, 4 ] ).description( 'The resource type (e.g. 1 for content, 2 for files, 3 for mc, 4 for digital signature)' ), | ||
'name' : Joi.forbidden(), | ||
@@ -11,0 +11,0 @@ 'description' : Joi.forbidden(), |
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
34753
671