function verifyDeprecatedProperties(resolvedSchema, includeDeprecated) {
  traverseUtility(resolvedSchema.properties).forEach(function (property) {
    if (property && typeof property === 'object') {
      if (property.deprecated === true && includeDeprecated === false) {
        this.delete();
      }
    }
  });
}
Remove or keep the deprecated properties according to the option
@param {object} resolvedSchema - the schema to verify properties
@param {boolean} includeDeprecated - Whether to include the deprecated properties
@returns {undefined} undefined