-
Notifications
You must be signed in to change notification settings - Fork 630
Ping source should treat "data" as binary #4206
Copy link
Copy link
Closed
Labels
area/apiarea/sourceskind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Milestone
Metadata
Metadata
Assignees
Labels
area/apiarea/sourceskind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Today it appears that the
datais required to be JSON, I'd like to suggest that this be changed and we support any random set of bytes (as long as it can be serialized into the CR's yaml/json). From an end user's point of view they will only see two things... the CR/CLI and the data that is delivered to the sink. There is no reason to for the user (in either of those cases) to deal with JSON. If there's Knative internal reasons to use JSON then we should hide those from the user - but I do not believe this is the case. Imagine a situation where the user is dealing with, say, XML... I do not believe it would be appropriate to require them to install a JSON parser into the sink/Ksvc when they would like to specify data as<doit/>. The CloudEvent delivered to the sink uses the binary format, which means the HTTP Body can be anything - if treatdataas just a raw set of bytes then we should be able to support this/cc @lionelvillard @cr22rc