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 data in Array format throws a ValidationError #280
TypeError: invalid payload
at Object.validateV1 (src/event/spec.ts:14:11)
at CloudEvent.validate (src/event/cloudevent.ts:178:16)
at new CloudEvent (src/event/cloudevent.ts:121:10)
Although the schema has not changed, in previous versions the event was (in most cases) validated on demand. With the new version, you are not allowed to create an invalid event. In this case, the event is not invalid, but the schema thinks it is.
Activity
lance commentedon Jul 28, 2020
Although the schema has not changed, in previous versions the event was (in most cases) validated on demand. With the new version, you are not allowed to create an invalid event. In this case, the event is not invalid, but the schema thinks it is.
fix: ensure that event data can be an array or number
lance commentedon Jul 28, 2020
The fix for this also adds tests for
booleanandnullwhich are also valid JSON.fix: ensure that event data can be an array, number, boolean or null (#…