-
Notifications
You must be signed in to change notification settings - Fork 15
Make --json output format same as it was before
#479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| #[serde(flatten)] | ||
| pub json_value: Option<serde_json::Value>, | ||
| /// The human readable representation of the bytes. | ||
| #[serde(skip)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe I introduced this for the codecs, but given that it's all json, maybe we should remove it while we are at it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, but this is mostly to accommodate the raw codec, for which we couldn't make any assumptions when the cli flag was exposed
function-runner/src/container.rs
Line 37 in 218f79f
| humanized: "<raw codec>".into(), |
json, for all the other cases, humanized is pretty much a json representation if I'm not wrong? So we could drop humanized and simply stringify the json directly. OTOH, maybe it's fine to keep it, and instead we should remove the Raw option from the codec which is what really complicates things here. I'll leave it up to you in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we should probably remove the Raw codec. I'm fine doing that outside of this PR though.
| #[serde(flatten)] | ||
| pub json_value: Option<serde_json::Value>, | ||
| /// The human readable representation of the bytes. | ||
| #[serde(skip)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we should probably remove the Raw codec. I'm fine doing that outside of this PR though.
No description provided.