Socket
Socket
Sign inDemoInstall

@sinet/validation

Package Overview
Dependencies
5
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.8 to 1.2.9

2

package.json
{
"name": "@sinet/validation",
"version": "1.2.8",
"version": "1.2.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -47,3 +47,3 @@ 'use strict';

'id' : Joi.string().guid().required().description( 'The indicator id' ),
'type' : Joi.number().integer().required().description( 'The indicator type' ),
'type' : Joi.number().integer().valid( [ 1, 2, 3, 4, 5 ] ).required().description( 'The indicator type' ),
'questionText' : Joi.string().required().description( 'The text of the question -- Sanitizes HTML' ),

@@ -54,3 +54,7 @@ 'answerText' : ( setAnswerText() ),

'score' : ( setScore() ),
'isRequired' : Joi.boolean().default( false ).description( 'Whether the indicator response is required for observation completion' ),
'isRequired' : Joi.when( 'type', {
'is' : [ 1, 2, 3, 4 ],
'then' : Joi.boolean().default( false ).description( 'Whether the indicator response is required for observation completion' ),
'otherwise' : Joi.forbidden()
} ),

@@ -57,0 +61,0 @@ 'prescribedResources' : Joi.array().optional()

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc