From 0b4a6ab98ca40119fa870190ecf90574f4b78b93 Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Wed, 18 Dec 2019 15:59:19 -0800 Subject: [PATCH] add bundleReference to the claim specification https://github.com/cnabio/libcnab-rust/issues/30 https://github.com/cnabio/cnab-spec/pull/299 Signed-off-by: Adam Reese --- src/claim.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/claim.rs b/src/claim.rs index 074cdb4..090bd9b 100644 --- a/src/claim.rs +++ b/src/claim.rs @@ -26,6 +26,11 @@ pub struct Claim { pub result: Response, /// A ulid to track the revision pub revision: String, + /// A canonical reference to the bundle used in the last action. + /// When provided, the bundle reference SHOULD be digested to identify a specific version of + /// the referenced bundle. + pub bundle_reference: Option, + } /// Response represents the result of a CNAB operation, as described in a Claim. @@ -60,6 +65,7 @@ mod test { } } }, + "bundleReference": "hub.example.com/my/bundle@sha256:eeeeeeeee...", "created": "2018-08-30T20:39:55.549002887-06:00", "modified": "2018-08-30T20:39:55.549002887-06:00", "result": {