Checks a receipt against the receipt JSON Schema installed with crate, then
recomputes its recipe_id, which the schema cannot check.
Arguments
- x
A receipt, as a list from
crt_receipt_read(), or a path to one.- error
If
TRUE(the default), abort on an invalid receipt, listing what is wrong; ifFALSE, returnFALSEwith the problems as attributeerrors.
Examples
if (requireNamespace("jsonvalidate", quietly = TRUE)) {
crt_receipt_validate(system.file("extdata", "receipt", "examples", "worked_case",
"build_1", package = "crate"))
}
