Skip to content

Ping source should treat "data" as binary #4206

@duglin

Description

@duglin

Today it appears that the data is 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 treat data as just a raw set of bytes then we should be able to support this

/cc @lionelvillard @cr22rc

Metadata

Metadata

Assignees

Labels

area/apiarea/sourceskind/bugCategorizes 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.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions