diff --git a/src/schemas/config.json b/src/schemas/config.json index 3607418..1a4a998 100644 --- a/src/schemas/config.json +++ b/src/schemas/config.json @@ -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": { diff --git a/src/schemas/streamConfig.json b/src/schemas/streamConfig.json index d8402a6..3519984 100644 --- a/src/schemas/streamConfig.json +++ b/src/schemas/streamConfig.json @@ -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": { diff --git a/test/config.js b/test/config.js index 5e0478f..b7f8a61 100644 --- a/test/config.js +++ b/test/config.js @@ -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'; @@ -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);