Skip to content

Commit 83131ad

Browse files
committed
All required and optional attributes
Signed-off-by: Fabio José <[email protected]>
1 parent 302e4a6 commit 83131ad

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lib/cloudevent.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,26 @@ Cloudevent.prototype.time = function(_time){
4848
return this;
4949
}
5050

51+
Cloudevent.prototype.schemaurl = function(_schemaurl) {
52+
this.spec.schemaurl(_schemaurl);
53+
return this;
54+
}
55+
56+
Cloudevent.prototype.contenttype = function(_contenttype){
57+
this.spec.contenttype(_contenttype);
58+
return this;
59+
}
60+
61+
Cloudevent.prototype.data = function(_data) {
62+
this.spec.data(_data);
63+
return this;
64+
}
65+
66+
Cloudevent.prototype.addExtension = function(key, value){
67+
this.spec.addExtension(key, value);
68+
return this;
69+
}
70+
5171
/*
5272
* Export the specs
5373
*/

0 commit comments

Comments
 (0)