Specversion placebo

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-25 10:30:25 -03:00
parent 99310d1920
commit 7024876e49
2 changed files with 9 additions and 0 deletions

View File

@ -43,6 +43,10 @@ Cloudevent.prototype.getType = function() {
return this.spec.getType();
};
Cloudevent.prototype.specversion = function(version) {
return this.spec.specversion(version);
};
Cloudevent.prototype.getSpecversion = function() {
return this.spec.getSpecversion();
};

View File

@ -53,6 +53,11 @@ Spec02.prototype.getType = function(){
return this.payload["type"];
};
Spec02.prototype.specversion = function(_specversion){
// does not set! This is right
return this;
};
Spec02.prototype.getSpecversion = function() {
return this.payload["specversion"];
};