Skip to content

Commit

Permalink
feat: update JSON schemas to draft-07 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking authored and gajus committed Sep 4, 2018
1 parent 8d1a44e commit 7bd7eaa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/schemas/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "config.json",
"$schema": "http://json-schema.org/draft-06/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"border": {
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/streamConfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$id": "streamConfig.json",
"$schema": "http://json-schema.org/draft-06/schema#",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"border": {
Expand Down
2 changes: 0 additions & 2 deletions test/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
} from 'chai';
import Ajv from 'ajv';
import ajvKeywords from 'ajv-keywords';
import ajvSchemaDraft06 from 'ajv/lib/refs/json-schema-draft-06.json';

import validateConfig from '../dist/validateConfig';
import configSchema from '../src/schemas/config.json';
Expand All @@ -14,7 +13,6 @@ describe('config.json schema', () => {

before(() => {
const ajv = new Ajv({allErrors: true});
ajv.addMetaSchema(ajvSchemaDraft06);

ajvKeywords(ajv, 'typeof');
validate = ajv.compile(configSchema);
Expand Down

0 comments on commit 7bd7eaa

Please sign in to comment.