Skip to content

Commit bbe2fe6

Browse files
rybaczewadaffl
authored andcommitted
Upgrade ajv dependency and fix failing tests. (#518)
1 parent ebad031 commit bbe2fe6

File tree

3 files changed

+65
-18
lines changed

3 files changed

+65
-18
lines changed

package-lock.json

Lines changed: 62 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"@feathersjs/errors": "^3.3.0",
5555
"@feathersjs/feathers": "^3.1.3",
5656
"@types/graphql": "^14.0.4",
57-
"ajv": "^5.5.2",
57+
"ajv": "^6.10.0",
5858
"debug": "^3.1.0",
5959
"graphql": "^14.0.2",
6060
"libphonenumber-js": "^1.6.8",

tests/services/validate-schema.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Ajv = require('ajv');
1212
const ajv = new Ajv({ allErrors: true });
1313
ajv.addFormat('startWithJo', '^Jo');
1414
ajv.addSchema({
15-
'id': 'syncSchema',
15+
'$id': 'syncSchema',
1616
'properties': {
1717
'first': { 'type': 'string', 'format': 'startWithJo' },
1818
'last': { 'type': 'string' }
@@ -196,7 +196,7 @@ describe('services validateSchema', () => {
196196
});
197197

198198
ajvAsync.addSchema({
199-
'id': 'asyncSchema',
199+
'$id': 'asyncSchema',
200200
'$async': true,
201201
'properties': {
202202
'first': {

0 commit comments

Comments
 (0)