function validateOsInfo(osInfo) {
  const result = Joi.validate(osInfo, osInfoSchema);

  if (result.error !== null) {
    throw new ValidationError({
      message: JSON.stringify(result.error.details),
    });
  }
}
/**
 * Validates that OsInfo confirms with osInfoSchema
 * @param  {Object} osInfo - OS info of collector
 * @throws {ValidationError} If osInfo does not contain valid attributes
 */
Validates that OsInfo confirms with osInfoSchema
@param  {Object} osInfo - OS info of collector
@throws {ValidationError} If osInfo does not contain valid attributes
Validates that OsInfo confirms with osInfoSchema @param { Object } osInfo - OS info of collector @throws { ValidationError } If osInfo does not contain valid attributes
function validateOsInfo(osInfo) {
  const result = Joi.validate(osInfo, osInfoSchema);
  if (result.error !== null) {
    throw new ValidationError({
      message: JSON.stringify(result.error.details),
    });
  }
}
function validateOsInfo ( osInfo ) { const result = Joi . validate ( osInfo , osInfoSchema ) ; if ( result . error !== null ) { throw new ValidationError ( { message : JSON . stringify ( result . error . details ) , } ) ; } }
Validates that OsInfo confirms with osInfoSchema
 @param  {Object} osInfo - OS info of collector
 @throws {ValidationError} If osInfo does not contain valid attributes
Validates that OsInfo confirms with osInfoSchema @param { Object } osInfo - OS info of collector @throws { ValidationError } If osInfo does not contain valid attributes