Skip to content

Commit 8fdae1b

Browse files
authored
docs: Describe what parameter is missing in c2pa.opened/placed/removed validation (#1737)
1 parent 6d45366 commit 8fdae1b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sdk/src/claim.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,14 +2227,14 @@ impl Claim {
22272227
let Some(params) = action.parameters() else {
22282228
log_item!(
22292229
label.clone(),
2230-
"opened, placed and removed items must have parameters",
2230+
"opened, placed and removed items must have ingredient(s) parameters",
22312231
"verify_actions"
22322232
)
22332233
.validation_status(validation_status::ASSERTION_ACTION_INGREDIENT_MISMATCH)
22342234
.failure(
22352235
validation_log,
22362236
Error::ValidationRule(
2237-
"opened, placed and removed items must have parameters".into(),
2237+
"opened, placed and removed items must have ingredient(s) parameters".into(),
22382238
),
22392239
)?;
22402240
continue; // Skip the parameter-dependent checks below

sdk/src/store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6909,7 +6909,7 @@ pub mod tests {
69096909
// expect action error
69106910
assert!(store.is_err());
69116911
assert!(report.has_error(Error::ValidationRule(
6912-
"opened, placed and removed items must have parameters".into()
6912+
"opened, placed and removed items must have ingredient(s) parameters".into()
69136913
)));
69146914
assert!(report.filter_errors().count() == 2);
69156915
}

0 commit comments

Comments
 (0)