Skip to content

Conversation

@alextrnnn
Copy link
Contributor

Changes in this pull request

Supports c2pa.metadata assertion with validation of allowed fields

Checklist

  • This PR represents a single feature, fix, or change.
  • All applicable changes have been documented.
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment.

@alextrnnn alextrnnn marked this pull request as ready for review July 28, 2025 15:05
Copy link
Collaborator

@gpeacock gpeacock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add documentation comments here.

@alextrnnn alextrnnn requested a review from gpeacock August 6, 2025 15:47
@alextrnnn alextrnnn merged commit 709ba75 into main Aug 11, 2025
21 checks passed
@alextrnnn alextrnnn deleted the alextrnnn/metadata-assertion branch August 11, 2025 20:44
@caiopensrc caiopensrc mentioned this pull request Aug 11, 2025
ok-nick pushed a commit that referenced this pull request Aug 13, 2025
* feat: Add metadata struct and validation for allowed fields

* fix: validation now follow specs

* format: fix formatting

* fix: Add support for custom metadata assertions and change validation logic

* fix: Fix label being lost in to/from assertion conversion (json still broken)

* fix: Resort to copying logic from_json_assertion and adding extra logic

* fix: Revert changes to from_json_assertion

* fix: Add some integration tests and change logic to retrieve duplicate metadata assertions

* test: Add more tests and remove debug artifacts

* docs: Add docs to methods

* fix: Validate empty context and change logging

* refactor: Rename Meta to Metadata

* fix: Add special case for metadata

* chore: Fix clippy

* refactor: Use std Lazy Lock instead of macro, move it to labels

* fix: Update old metadata integration test, input label before json_ld

* docs: Add docs and fix mentions of URLs to be URIs

* format: Fix format error

---------

Co-authored-by: Gavin  Peacock <gpeacock@adobe.com>
@caiopensrc caiopensrc mentioned this pull request Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants