Comments, spec0.2
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
2ca88b089c
commit
232b39b5b3
|
@ -1,6 +1,6 @@
|
||||||
var Spec02 = require("../../specs/spec_0_2.js");
|
var Spec02 = require("../../specs/spec_0_2.js");
|
||||||
|
|
||||||
const spec = new Spec02();
|
const spec02 = new Spec02();
|
||||||
|
|
||||||
function JSONParser() {
|
function JSONParser() {
|
||||||
|
|
||||||
|
@ -37,7 +37,8 @@ function validate_and_parse_as_json(payload) {
|
||||||
*/
|
*/
|
||||||
function validate_spec(payload) {
|
function validate_spec(payload) {
|
||||||
|
|
||||||
spec.check(payload);
|
// is that follow spec 0.2?
|
||||||
|
spec02.check(payload);
|
||||||
|
|
||||||
return payload;
|
return payload;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue