All required and optional attributes

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-12-05 22:52:54 -02:00
parent 302e4a653b
commit 83131ad36a
1 changed files with 20 additions and 0 deletions

View File

@ -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
*/