atlassian-connect-validator
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "atlassian-connect-validator", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Utility to validate an Atlassian Connect add-on descriptor", | ||
@@ -5,0 +5,0 @@ "main": "validate.js", |
@@ -22,3 +22,3 @@ var util = require('util'), | ||
if (context.length > 1) { | ||
module = _.without(modules, '#').join(' > '); | ||
module = _.without(context, '#').join(' > '); | ||
} else { | ||
@@ -32,11 +32,19 @@ module = "Root"; | ||
validationErrors.push({ | ||
var validationError = { | ||
module: module, | ||
value: value, | ||
validValues: validValues, | ||
description: description | ||
}); | ||
}; | ||
if (value) { | ||
validationErrors.value = value; | ||
} | ||
if (validValues) { | ||
validationErrors.validValues = validValues; | ||
} | ||
validationErrors.push(validationError); | ||
}); | ||
return validationErrors | ||
return validationErrors; | ||
}; | ||
@@ -43,0 +51,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
2842
49