Skip to content

Commit 7024876

Browse files
committed
Specversion placebo
Signed-off-by: Fabio José <[email protected]>
1 parent 99310d1 commit 7024876

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/cloudevent.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Cloudevent.prototype.getType = function() {
4343
return this.spec.getType();
4444
};
4545

46+
Cloudevent.prototype.specversion = function(version) {
47+
return this.spec.specversion(version);
48+
};
49+
4650
Cloudevent.prototype.getSpecversion = function() {
4751
return this.spec.getSpecversion();
4852
};

lib/specs/spec_0_2.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ Spec02.prototype.getType = function(){
5353
return this.payload["type"];
5454
};
5555

56+
Spec02.prototype.specversion = function(_specversion){
57+
// does not set! This is right
58+
return this;
59+
};
60+
5661
Spec02.prototype.getSpecversion = function() {
5762
return this.payload["specversion"];
5863
};

0 commit comments

Comments
 (0)