-
Notifications
You must be signed in to change notification settings - Fork 6
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
[Migrated] Bug: cocli corim display #17
Comments
@deeglaze can we provide a --raw (or similarly named) flag to control whether extra labels/headings are displayed, giving users the choice of purely raw JSON vs. human-friendly headings. |
I think it is difficult to say if this can be resolved fully, as CoRIM does not have a JSON-friendly CDDL definition. Anything we say is The display tooling is meant purely for human diagnostics. I'm tempted to close as won't fix, or label as enhancement rather than bug. |
@deeglaze yaa you are right that's the whole point of display tooling is for human diagnostic, however should we consider adding something like - raw tag? As some of the user faces this issue as I have seen one more issue that had mentioned same problem in corim repo |
I wouldn't reject it outright. I would need to see a PR and see if the other maintainers share my stance. Edit: If we say it's rendering in the template format, I would be okay with it. I just don't know how the template format handles binary strings. |
Source: veraison/corim#69, confirmed still an issue
cocli corim display on a signed corim creates a json and prints "Meta:" and "CoRIM:" in https://github.com/veraison/corim/blob/main/cocli/cmd/corimDisplay.go#L88 and later.
This causes a problem when parsing the JSON file output through python or command line, and appears to be a non-conforming JSON.
Can you confirm this is a bug? and perhaps fix it?
Similarly cocli comid display also outputs the file name with >> at the top of the JSON file and makes it difficult to parse.
The text was updated successfully, but these errors were encountered: