Skip to content

Conversation

technosophos
Copy link
Member

Closes #72

Signed-off-by: Matt Butcher matt.butcher@microsoft.com

@technosophos technosophos self-assigned this Jan 23, 2019
@ghost ghost added the review label Jan 23, 2019
@technosophos technosophos requested a review from lachie83 January 23, 2019 23:52
@@ -2,6 +2,10 @@

This section describes the format and function of the `bundle.json` document.

The `bundle.json` file is a representation of bundle metadata. It MUST be represented as [Canonical JSON](http://wiki.laptop.org/go/Canonical_JSON). While Canonical JSON is parseable by any JSON parser, its serialized form is consistent. This is a necessity when comparing two textual representations of the same data (such as when hashing).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add appropriate verbiage around whether or not tooling should error if the bundle.json is not represented in the correct format?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part is tricky. I haven't seen any Canonical JSON parsers that actually verify that the content it parses is canonical. But we could certainly add a MAY line in here.

@lachie83
Copy link
Contributor

What are the implications of merging this change? In my mind they are benign in the short-term although should tools error if bundle.json is non-compliant given this change?

@technosophos
Copy link
Member Author

Yeah, so my thought is that since Canonical JSON parsers don't appear to error out if the JSON is not perfectly canonical (e.g. "non-validating parsers"), this change actually impacts generators first. So we can ease our way into it.

Copy link
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with a rebase).

Closes cnabio#72

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
This changes the image references to the new format.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
@technosophos technosophos merged commit 671b981 into cnabio:master Feb 12, 2019
@technosophos technosophos deleted the canonical-json branch February 12, 2019 21:54
@ghost ghost removed the review label Feb 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants