contentauth / c2pa-js

JavaScript SDK for displaying and validating C2PA data
https://opensource.contentauthenticity.org
MIT License
74 stars 40 forks source link

Allow for missing parameter map #12

Closed dkozma closed 2 years ago

dkozma commented 2 years ago

Description

This fixes an issue where we get an error if an action assertion doesn't contain a parameter map. According to the C2PA 1.0 spec, parameters is optional and may not exist.

Motivation and Context

We should be able to handle assets that conform to the spec without errors occurring.

How Has This Been Tested?

Tested with Verify on sample images.

Types of changes

Checklist:

dkozma commented 2 years ago

Replacing with #14 due to #13.