Browse Source

fixed #892, added case for any format

flowchartTest
Alex de Mulder 9 years ago
parent
commit
1cf66f6ac9
2 changed files with 31668 additions and 31668 deletions
  1. +31666
    -31666
      dist/vis.js
  2. +2
    -2
      lib/shared/Validator.js

+ 31666
- 31666
dist/vis.js
File diff suppressed because it is too large
View File


+ 2
- 2
lib/shared/Validator.js View File

@ -109,8 +109,8 @@ class Validator {
else if (refOptionObj['fn'] !== undefined && optionType === 'function') { else if (refOptionObj['fn'] !== undefined && optionType === 'function') {
// item is a function, which is allowed // item is a function, which is allowed
} }
else {
// type of the field is incorrect
else if (refOptionObj['any'] === undefined) {
// type of the field is incorrect and the field cannot be any
console.log('%cInvalid type received for "' + option + '". Expected: ' + Validator.print(Object.keys(refOptionObj)) + '. Received [' + optionType + '] "' + options[option] + '"' + Validator.printLocation(path, option), printStyle); console.log('%cInvalid type received for "' + option + '". Expected: ' + Validator.print(Object.keys(refOptionObj)) + '. Received [' + optionType + '] "' + options[option] + '"' + Validator.printLocation(path, option), printStyle);
errorFound = true; errorFound = true;
} }

Loading…
Cancel
Save