Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
validate: function(element, values, node) {
const bo = getSelected(element, node);
const validation = {};
if (bo) {
const sourceValue = values.source;
if (sourceValue) {
if (utils.containsSpace(sourceValue)) {
validation.source = 'Source must not contain spaces';
}
}
else {
validation.source = 'Parameter must have a source';
}
}
return validation;
},
validate: function(element, values, node) {
const bo = getSelected(element, node);
const validation = {};
if (bo) {
const targetValue = values.target;
if (targetValue) {
if (utils.containsSpace(targetValue)) {
validation.target = 'Target must not contain spaces';
}
}
else {
validation.target = 'Mapping must have a Target';
}
}
return validation;
},
validate: function(element, values, node) {
const bo = getTaskDefinition(element);
let validation = {};
if (bo) {
const {
type
} = values;
if (type) {
if (containsSpace(type)) {
validation = {
type: 'Type must not contain spaces'
};
}
}
else {
validation = {
type: 'ServiceTask must have a type'
};
}
}
return validation;
}
}));
validate: function(element, values, node) {
const bo = getSelected(element, node);
const validation = {};
if (bo) {
const targetValue = values.target;
if (targetValue) {
if (utils.containsSpace(targetValue)) {
validation.target = 'Target must not contain spaces';
}
}
else {
validation.target = 'Parameter must have a Target';
}
}
return validation;
},
validate: function(element, values, node) {
const bo = getSelected(element, node);
const validation = {};
if (bo) {
const sourceValue = values.source;
if (sourceValue) {
if (utils.containsSpace(sourceValue)) {
validation.source = 'Source must not contain spaces';
}
}
else {
validation.source = 'Mapping must have a source';
}
}
return validation;
},