Skip to content

Commit

Permalink
validate schema with JSON meta schema
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed Apr 1, 2020
1 parent 2ce8daa commit fffe0f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/component.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
'use strict';

const Ajv = require('ajv');
const meta = require('ajv/lib/refs/json-schema-draft-06.json');
const lib = require('../lib/');

describe('meta', () => {
it('any', async () => {
const ajv = new Ajv({schemaId: 'auto'});
const validate = ajv.addMetaSchema(meta).compile({});
validate(lib.any);
});
});

describe('any', () => {
const ajv = new Ajv();
const validate = ajv
Expand Down

0 comments on commit fffe0f4

Please sign in to comment.