We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99310d1 commit 7024876Copy full SHA for 7024876
lib/cloudevent.js
@@ -43,6 +43,10 @@ Cloudevent.prototype.getType = function() {
43
return this.spec.getType();
44
};
45
46
+Cloudevent.prototype.specversion = function(version) {
47
+ return this.spec.specversion(version);
48
+};
49
+
50
Cloudevent.prototype.getSpecversion = function() {
51
return this.spec.getSpecversion();
52
lib/specs/spec_0_2.js
@@ -53,6 +53,11 @@ Spec02.prototype.getType = function(){
53
return this.payload["type"];
54
55
56
+Spec02.prototype.specversion = function(_specversion){
57
+ // does not set! This is right
58
+ return this;
59
60
61
Spec02.prototype.getSpecversion = function() {
62
return this.payload["specversion"];
63
0 commit comments