@rapid-io/protocol
Advanced tools
Comparing version 0.0.71 to 0.0.72
@@ -15,21 +15,2 @@ 'use strict' | ||
}, | ||
'chan-id': { | ||
anyOf: [ | ||
{ | ||
type: 'string', | ||
pattern: '^[a-zA-Z0-9-_]+$', | ||
}, | ||
{ | ||
type: 'object', | ||
properties: { | ||
pref: { | ||
type: 'string', | ||
pattern: '^[a-zA-Z0-9-_]+$', | ||
}, | ||
}, | ||
required: ['pref'], | ||
additionalProperties: false, | ||
}, | ||
], | ||
}, | ||
'sub-id': { | ||
@@ -40,3 +21,3 @@ type: 'string', | ||
}, | ||
required: ['evt-id', 'chan-id', 'sub-id'], | ||
required: ['evt-id', 'sub-id'], | ||
additionalProperties: false, | ||
@@ -43,0 +24,0 @@ }, |
@@ -15,6 +15,2 @@ 'use strict' | ||
}, | ||
'col-id': { | ||
type: 'string', | ||
pattern: '^[a-zA-Z0-9-_]+$', | ||
}, | ||
'sub-id': { | ||
@@ -25,3 +21,3 @@ type: 'string', | ||
}, | ||
required: ['evt-id', 'col-id', 'sub-id'], | ||
required: ['evt-id', 'sub-id'], | ||
additionalProperties: false, | ||
@@ -28,0 +24,0 @@ }, |
@@ -27,3 +27,3 @@ 'use strict' | ||
}, | ||
required: ['evt-id', 'chan-id', 'body'], | ||
required: ['evt-id', 'chan-id', 'sub-id', 'body'], | ||
additionalProperties: false, | ||
@@ -30,0 +30,0 @@ }, |
{ | ||
"name": "@rapid-io/protocol", | ||
"version": "0.0.71", | ||
"version": "0.0.72", | ||
"description": "Protocol and validation for Rapid.io", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
}, | ||
"dependencies": { | ||
@@ -13,4 +17,5 @@ "ajv": "^5.0.0", | ||
"babel-eslint": "^7.1.0", | ||
"eslint": "^3.13.1" | ||
"eslint": "^3.13.1", | ||
"jest": "^20.0.4" | ||
} | ||
} |
102968
74
2622
4