Skip to content

Commit 7bd7eaa

Browse files
realitykinggajus
authored andcommitted
feat: update JSON schemas to draft-07 (#74)
1 parent 8d1a44e commit 7bd7eaa

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/schemas/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$id": "config.json",
3-
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
44
"type": "object",
55
"properties": {
66
"border": {

src/schemas/streamConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$id": "streamConfig.json",
3-
"$schema": "http://json-schema.org/draft-06/schema#",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
44
"type": "object",
55
"properties": {
66
"border": {

test/config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
} from 'chai';
44
import Ajv from 'ajv';
55
import ajvKeywords from 'ajv-keywords';
6-
import ajvSchemaDraft06 from 'ajv/lib/refs/json-schema-draft-06.json';
76

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

1514
before(() => {
1615
const ajv = new Ajv({allErrors: true});
17-
ajv.addMetaSchema(ajvSchemaDraft06);
1816

1917
ajvKeywords(ajv, 'typeof');
2018
validate = ajv.compile(configSchema);

0 commit comments

Comments
 (0)