@sinet/validation
Advanced tools
Comparing version 1.2.5 to 1.2.6
{ | ||
"name": "@sinet/validation", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -63,3 +63,3 @@ 'use strict'; | ||
.optional() | ||
.items( Joi.object().optional().keys( require( './template-attachments-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './template-attachment' ) ) ) | ||
.description( 'The template attachments' ), | ||
@@ -66,0 +66,0 @@ |
@@ -62,3 +62,3 @@ 'use strict'; | ||
// Get common template schema | ||
.keys( require( './template-schema' )( level ) ) | ||
.keys( require( './template' )( level ) ) | ||
.description( 'The template data of the observation' ), | ||
@@ -75,3 +75,3 @@ | ||
// Get common evidences schema | ||
.items( Joi.object().optional().keys( require( './master-evidences-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './master-evidences' ) ) ) | ||
.description( 'All of the evidences assigned in the observation' ), | ||
@@ -88,3 +88,3 @@ | ||
// Get common prescibed resources schema | ||
.items( Joi.object().optional().keys( require( './master-prescribed-resources-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './master-prescribed-resource' ) ) ) | ||
.description( 'All of the prescribed resources assigned in the observation' ), | ||
@@ -91,0 +91,0 @@ |
@@ -43,3 +43,3 @@ 'use strict'; | ||
// Get common rubric schema | ||
.items( Joi.object().optional().keys( require( './rubric-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './rubric' ) ) ) | ||
.description( 'The rubric data of the template -- Sanitizes HTML' ), | ||
@@ -59,3 +59,3 @@ | ||
.optional() | ||
.items( Joi.object().optional().keys( require( './template-attachments-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './template-attachment' ) ) ) | ||
.description( 'The template attachments' ), | ||
@@ -72,3 +72,3 @@ | ||
.optional() | ||
.items( Joi.object().optional().keys( require( './indicators-schema' )( level ) ) ) | ||
.items( Joi.object().optional().keys( require( './indicator' )( level ) ) ) | ||
.description( 'Indicators array -- Sanitizes HTML' ), | ||
@@ -86,3 +86,3 @@ | ||
.optional() | ||
.items( Joi.object().optional().keys( require( './template-attachments-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './template-attachment' ) ) ) | ||
.description( 'The template attachments' ), | ||
@@ -97,3 +97,3 @@ | ||
// Get common rubric schema | ||
.items( Joi.object().optional().keys( require( './rubric-schema' ) ) ) | ||
.items( Joi.object().optional().keys( require( './rubric' ) ) ) | ||
.description( 'The rubric data of the group -- Sanitizes HTML' ), | ||
@@ -100,0 +100,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
19467