@ospin/fct-graph
Advanced tools
Comparing version 6.0.1 to 6.0.2
{ | ||
"name": "@ospin/fct-graph", | ||
"author": "OSPIN webapp team", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Graph data structure with conditional edges via 'slots' on nodes. Intended to represent physical and virtual functionalities on a device.", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -23,12 +23,2 @@ const Joi = require('joi') | ||
const OFFSET_SLOPE_CALIBRATON_TYPE = 'OFFSET_SLOPE' | ||
const CALIBRATIONS_SCHEMA = Joi.array().items(Joi.object({ | ||
type: Joi.string().allow(OFFSET_SLOPE_CALIBRATON_TYPE).required(), | ||
params: Joi.object({ | ||
offset: Joi.string().allow('float').required(), | ||
slope: Joi.string().allow('float').required(), | ||
}), | ||
})) | ||
const SCHEMA = Joi.object({ | ||
@@ -139,16 +129,2 @@ name: Joi.string().required(), | ||
calibrations: Joi.when('type', { | ||
is: TYPES.OUT_SLOT, | ||
then: Joi.when('dataType', { | ||
switch: [ | ||
{ | ||
is: Joi.alternatives().try(DATA_TYPES.INTEGER, DATA_TYPES.FLOAT), | ||
then: CALIBRATIONS_SCHEMA, | ||
otherwise: Joi.forbidden(), | ||
}, | ||
], | ||
}), | ||
otherwise: Joi.forbidden(), | ||
}), | ||
tareable: Joi.when('type', { | ||
@@ -155,0 +131,0 @@ is: TYPES.IN_SLOT, |
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
70304
1012