mirror of
https://github.com/10h30/odin-javascript-exercises.git
synced 2026-07-13 19:56:05 +09:00
remove timer and simon
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* @fileoverview The instance of Ajv validator.
|
||||
* @author Evgeny Poberezkin
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Requirements
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const Ajv = require("ajv"),
|
||||
metaSchema = require("ajv/lib/refs/json-schema-draft-04.json");
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Public Interface
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
const ajv = new Ajv({
|
||||
meta: false,
|
||||
validateSchema: false,
|
||||
missingRefs: "ignore",
|
||||
verbose: true
|
||||
});
|
||||
|
||||
ajv.addMetaSchema(metaSchema);
|
||||
// eslint-disable-next-line no-underscore-dangle
|
||||
ajv._opts.defaultMeta = metaSchema.id;
|
||||
|
||||
module.exports = ajv;
|
||||
Reference in New Issue
Block a user