code: function checkLength(size, schema, key) {
      //Check if it is an int
      if (Number.isInteger(schema[SCHEMALENGTH])) {
        if (size != schema[SCHEMALENGTH]) {
          throw new ValidationException("Size of " + key + " is not correct.");
        }
      } else if (typeof schema[SCHEMALENGTH] == "string") {
        if (
          size < getMin(schema[SCHEMALENGTH], key) ||
          size > getMax(schema[SCHEMALENGTH], key)
        ) {
          throw new ValidationException("Size of " + key + " is not correct.");
        }
      } else {
        throw new ValidationException(SCHEMALENGTH + " cast exception: " + key);
      }
    }
docs: Check that an array fit its lenght
  @param  {[type]} size   [description]
  @param  {[type]} schema [description]
  @param  {[type]} key    [description]
  @return {[type]}        [description]