Skip to content

Commit

Permalink
add bundleReference to the claim specification
Browse files Browse the repository at this point in the history
#30
cnabio/cnab-spec#299

Signed-off-by: Adam Reese <[email protected]>
  • Loading branch information
adamreese committed Dec 18, 2019
1 parent 2c01696 commit 0b4a6ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/claim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,

}

/// Response represents the result of a CNAB operation, as described in a Claim.
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 0b4a6ab

Please sign in to comment.