You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CloudEvent extensions should be restricted to types allowed in spec #229
That test should probably fail. We can't assume that the receiver will know that the value needs to be converted to an object. Since strings are valid value types, the user should use JSON.stringify before setting the extension.
Activity
lholmquist commentedon Jul 8, 2020
Since the spec doesn't allow an Object, should we be throwing an error if someone passes in this:
Or is this ok since it will get converted to a JSON before transmission. basically, should this test pass or fail: https://github.com/cloudevents/sdk-javascript/blob/master/test/integration/spec_1_tests.ts#L99
lance commentedon Jul 13, 2020
That test should probably fail. We can't assume that the receiver will know that the value needs to be converted to an object. Since strings are valid value types, the user should use
JSON.stringifybefore setting the extension.