remove old draft-6 mentions
parent
d298a4802d
commit
f5937d93a9
|
@ -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');
|
||||
|
|
|
@ -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 }));
|
||||
|
||||
|
|
Loading…
Reference in New Issue