remove old draft-6 mentions

master
Evgeny Poberezkin 2018-11-11 11:49:20 +00:00
parent d298a4802d
commit f5937d93a9
2 changed files with 3 additions and 3 deletions

View File

@ -70,7 +70,7 @@ function Ajv(opts) {
this._metaOpts = getMetaSchemaOptions(this);
if (opts.formats) addInitialFormats(this);
addDraft6MetaSchema(this);
addDefaultMetaSchema(this);
if (typeof opts.meta == 'object') this.addMetaSchema(opts.meta);
if (opts.nullable) this.addKeyword('nullable', {metaSchema: {const: true}});
addInitialSchemas(this);
@ -444,7 +444,7 @@ function addFormat(name, format) {
}
function addDraft6MetaSchema(self) {
function addDefaultMetaSchema(self) {
var $dataSchema;
if (self._opts.$data) {
$dataSchema = require('./refs/data.json');

View File

@ -298,7 +298,7 @@ describe('Ajv Options', function () {
});
describe('meta and validateSchema', function() {
it('should add draft-6 meta schema by default', function() {
it('should add draft-7 meta schema by default', function() {
testOptionMeta(new Ajv);
testOptionMeta(new Ajv({ meta: true }));