Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 68c4e56

Browse files
authored
Upgrade dependency in package.json (#774)
* Upgrade dependency in package.json * Update API to v6
1 parent 5ed8305 commit 68c4e56

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

source/management_api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"express": "*",
88
"mongojs": "",
99
"toml": "*",
10-
"ajv": "^5.2.2",
10+
"ajv": "^6.12.3",
1111
"body-parser": "*",
1212
"mongoose": "^5.9.6",
1313
"fraction.js": "^4.0.12"

source/management_api/restReqValidator.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getErrorMessage(errors) {
4848
}
4949

5050
const Resolution = {
51-
id: '/Resolution',
51+
$id: 'Resolution.json',
5252
type: 'object',
5353
properties: {
5454
'width': { type: 'number' },
@@ -357,7 +357,7 @@ const ServerSideSubscriptionRequest = {
357357
'VideoParametersSpecification': {
358358
type: 'object',
359359
properties: {
360-
'resolution': { $ref: '/Resolution' },
360+
'resolution': { $ref: 'Resolution.json' },
361361
'framerate': { type: 'number' },
362362
'bitrate': { type: ['string', 'number'] },
363363
'keyFrameInterval': { type: 'number' }
@@ -368,7 +368,7 @@ const ServerSideSubscriptionRequest = {
368368
};
369369

370370
const SubscriptionControlInfo = {
371-
id: '/SubscriptionControlInfo',
371+
$id: 'SubscriptionControlInfo.json',
372372
type: 'object',
373373
anyOf: [
374374
{
@@ -391,7 +391,7 @@ const SubscriptionControlInfo = {
391391
properties: {
392392
'op': { 'const': 'replace' },
393393
'path': { 'const': '/media/video/parameters/resolution' },
394-
'value': { $ref: '/Resolution' }
394+
'value': { $ref: 'Resolution.json' }
395395
},
396396
additionalProperties: false
397397
},
@@ -426,7 +426,7 @@ ajv.addSchema(SubscriptionControlInfo);
426426

427427
const SubscriptionUpdate = {
428428
type: 'array',
429-
items: {$ref: '/SubscriptionControlInfo'}
429+
items: {$ref: 'SubscriptionControlInfo.json',}
430430
};
431431

432432
const SipCallAdd = {
@@ -487,7 +487,7 @@ const SipCallAdd = {
487487
'VideoParametersSpecification': {
488488
type: 'object',
489489
properties: {
490-
'resolution': { $ref: '/Resolution' },
490+
'resolution': { $ref: 'Resolution.json' },
491491
'framerate': { type: 'number' },
492492
'bitrate': { type: ['string', 'number'] },
493493
'keyFrameInterval': { type: 'number' }
@@ -498,7 +498,7 @@ const SipCallAdd = {
498498
};
499499

500500
const SipCallControlInfo = {
501-
id: '/SipCallControlInfo',
501+
$id: 'SipCallControlInfo.json',
502502
type: 'object',
503503
anyOf: [
504504
{
@@ -521,7 +521,7 @@ const SipCallControlInfo = {
521521
properties: {
522522
'op': { 'const': 'replace' },
523523
'path': { 'const': '/output/media/video/parameters/resolution' },
524-
'value': { $ref: '/Resolution' }
524+
'value': { $ref: 'Resolution.json' }
525525
},
526526
additionalProperties: false
527527
},
@@ -556,7 +556,7 @@ ajv.addSchema(SipCallControlInfo);
556556

557557
const SipCallUpdate = {
558558
type: 'array',
559-
items: {$ref: '/SipCallControlInfo'}
559+
items: {$ref: 'SipCallControlInfo.json'}
560560
};
561561
var validators = {
562562
'participant-update': generateValidator(ParticipantUpdate),

source/portal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"log4js": "^1.1.1",
88
"toml": "*",
99
"sprintf-js": "^1.0.3",
10-
"ajv": "^5.2.2",
10+
"ajv": "^6.12.3",
1111
"mongoose": "^5.9.6",
1212
"fraction.js": "^4.0.12",
1313
"uuid": "^8.0.0"

source/portal/requestDataValidator.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function getErrorMessage(errors) {
4848
}
4949

5050
const Resolution = {
51-
id: '/Resolution',
51+
$id: 'Resolution.json',
5252
type: 'object',
5353
properties: {
5454
'width': { type: 'number' },
@@ -108,7 +108,7 @@ const PublicationRequest = {
108108
'parameters': {
109109
type: 'object',
110110
properties: {
111-
'resolution': { $ref: '/Resolution' },
111+
'resolution': { $ref: 'Resolution.json' },
112112
'framerate': { type: 'number' }
113113
}
114114
}
@@ -267,7 +267,7 @@ const SubscriptionRequest = {
267267
'VideoParametersSpecification': {
268268
type: 'object',
269269
properties: {
270-
'resolution': { $ref: '/Resolution' },
270+
'resolution': { $ref: 'Resolution.json' },
271271
'framerate': { type: 'number' },
272272
'bitrate': { type: ['string', 'number'] },
273273
'keyFrameInterval': { type: 'number' }
@@ -331,7 +331,7 @@ const SubscriptionControlInfo = {
331331
'VideoUpdateSpecification': {
332332
type: 'object',
333333
properties: {
334-
resolution: { $ref: '/Resolution' },
334+
resolution: { $ref: 'Resolution.json' },
335335
framerate: { type: 'number' },
336336
bitrate: { type: ['number', 'string'] },
337337
keyFrameInterval: { type: 'number' }

0 commit comments

Comments
 (0)