|
@ -84,7 +84,6 @@ class Validator { |
|
|
static checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path) { |
|
|
static checkFields(option, options, referenceOptions, referenceOption, refOptionObj, path) { |
|
|
let optionType = Validator.getType(options[option]); |
|
|
let optionType = Validator.getType(options[option]); |
|
|
let refOptionType = refOptionObj[optionType]; |
|
|
let refOptionType = refOptionObj[optionType]; |
|
|
console.log('checkFields', optionType, refOptionType, refOptionObj) |
|
|
|
|
|
if (refOptionType !== undefined) { |
|
|
if (refOptionType !== undefined) { |
|
|
// if the type is correct, we check if it is supposed to be one of a few select values
|
|
|
// if the type is correct, we check if it is supposed to be one of a few select values
|
|
|
if (Validator.getType(refOptionType) === 'array') { |
|
|
if (Validator.getType(refOptionType) === 'array') { |
|
|