'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});


/**
 * schema for analytics.
 */
exports.default = {
  properties: {
    errResponse: {
      required: true,
      default: 'yes',
      description: 'would you like to share error information to Bit’s error reporting platform? [yes/no]',
      message: 'please choose yes or no.',
      type: 'string',
      conform(value) {
        return value.toLowerCase() === 'y' || value.toLowerCase() === 'n' || value.toLowerCase() === 'yes' || value.toLowerCase() === 'no';
      }
    }
  }
};