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
Expected Behavior
As with the other issues I opened regarding (silent) defaulting, I think HTTP.toEvent should not do this. I think it would be more appropriate to either fail fast on invalid input or take the original value with a subsequent event.validate() failing (maybe also thinking about strict mode as for instance in event.cloneWith).
In case of new CloudEvent(...) I agree that it makes sense to provide defaults.
Additional context
Origin of this behavior seems to be here:
In case of new CloudEvent(...) I agree that it makes sense to provide defaults.
I don't. I was suprised to find this. The field is optional - silently setting it is absolutely wrong imho and other SDKs don't do it (at least the Java one).
Activity
github-actions commentedon Mar 20, 2021
This issue is stale because it has been open 30 days with no activity.
black-snow commentedon Jan 26, 2023
I don't. I was suprised to find this. The field is
optional- silently setting it is absolutely wrong imho and other SDKs don't do it (at least the Java one).github-actions commentedon Feb 26, 2023
This issue is stale because it has been open 30 days with no activity.
black-snow commentedon Feb 28, 2023
not stale
github-actions commentedon Apr 1, 2023
This issue is stale because it has been open 30 days with no activity.