All required and optional attributes
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
302e4a653b
commit
83131ad36a
|
@ -48,6 +48,26 @@ Cloudevent.prototype.time = function(_time){
|
|||
return this;
|
||||
}
|
||||
|
||||
Cloudevent.prototype.schemaurl = function(_schemaurl) {
|
||||
this.spec.schemaurl(_schemaurl);
|
||||
return this;
|
||||
}
|
||||
|
||||
Cloudevent.prototype.contenttype = function(_contenttype){
|
||||
this.spec.contenttype(_contenttype);
|
||||
return this;
|
||||
}
|
||||
|
||||
Cloudevent.prototype.data = function(_data) {
|
||||
this.spec.data(_data);
|
||||
return this;
|
||||
}
|
||||
|
||||
Cloudevent.prototype.addExtension = function(key, value){
|
||||
this.spec.addExtension(key, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/*
|
||||
* Export the specs
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue