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',
|
2016-08-06 15:05:39 +03:00
|
|
|
extendRefs: 'ignore',
|
2016-07-28 02:50:30 +03:00
|
|
|
inlineRefs: false,
|
|
|
|
jsonPointers: true
|
|
|
|
}
|
2015-12-27 19:43:56 +03:00
|
|
|
: { allErrors: true };
|
|
|
|
|
2016-12-26 19:57:06 +03:00
|
|
|
if (fullTest && !isBrowser)
|
|
|
|
options.processCode = require('js-beautify').js_beautify;
|
2015-12-27 19:43:56 +03:00
|
|
|
|
|
|
|
module.exports = options;
|