@sinet/validation
Advanced tools
Comparing version 1.3.12 to 1.3.13
{ | ||
"name": "@sinet/validation", | ||
"version": "1.3.12", | ||
"version": "1.3.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ 'use strict'; | ||
var templateAttachment = require( './template-attachment' ); | ||
var digitalSignature = require( './digital-signature' ); | ||
@@ -19,5 +20,6 @@ var validations = { | ||
'template' : template, | ||
'template-attachment' : templateAttachment | ||
'template-attachment' : templateAttachment, | ||
'digitalSignature' : digitalSignature | ||
}; | ||
module.exports = validations; |
@@ -105,3 +105,10 @@ 'use strict'; | ||
*/ | ||
'manualScore' : Joi.number().optional().description( 'The manually-assigned score of the observation' ) | ||
'manualScore' : Joi.number().optional().description( 'The manually-assigned score of the observation' ), | ||
// Digital signature attribute | ||
'digitalSignature' : Joi | ||
.object() | ||
.optional() | ||
.keys( require( './digital-signature' ) ) | ||
.description( 'Holds the digital signature data for the current observation' ) | ||
}; | ||
@@ -108,0 +115,0 @@ |
@@ -120,3 +120,6 @@ 'use strict'; | ||
// Updated Date | ||
'updatedAt' : Joi.date().optional().strip().description( 'The updated date of the template. This will not be saved to the template object.' ) | ||
'updatedAt' : Joi.date().optional().strip().description( 'The updated date of the template. This will not be saved to the template object.' ), | ||
// Boolean value to allow digital signatures | ||
'allowSignature' : Joi.boolean().optional().description( 'indicator that the current template will allow digital signatures' ) | ||
}; | ||
@@ -123,0 +126,0 @@ |
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
34359
39
661