code: function assertProperties(object, path, properties) {
    let errors = [];
  
    (properties || []).forEach((property) => {
      if (get(object, property, undefined) === undefined) {
        errors = [...errors, { path, id: object.id, error: `${object.type} is missing the '${property}' property` }];
      }
    });
  
    return errors;
  }
docs: Assert properties exist. Returns array of errors