ajv/spec/ajv_options.js

21 lines
547 B
JavaScript
Raw Permalink Normal View History

2015-12-27 19:43:56 +03:00
'use strict';
var isBrowser = typeof window == 'object';
var fullTest = isBrowser || !process.env.AJV_FAST_TEST;
var options = fullTest
? {
2016-07-28 02:50:30 +03:00
allErrors: true,
verbose: true,
format: 'full',
extendRefs: 'ignore',
2016-07-28 02:50:30 +03:00
inlineRefs: false,
jsonPointers: true
}
2015-12-27 19:43:56 +03:00
: { allErrors: true };
if (fullTest && !isBrowser)
options.processCode = require('js-beautify').js_beautify;
2015-12-27 19:43:56 +03:00
module.exports = options;