Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added types of c2pa-asset-ref #89

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

added types of c2pa-asset-ref #89

wants to merge 3 commits into from

Conversation

MassivaM
Copy link
Contributor

@MassivaM MassivaM commented Mar 9, 2023

Changes in this pull request

Added types to the toolkit to accomodate for the c2pa-asset-ref assertion

Types of changes

  • [x ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • 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

@github-actions
Copy link

github-actions bot commented Mar 9, 2023

✅ Changeset has been found!

This will create and publish a new version to NPM after a successful merge.

export {
Assertion,
C2paActionsAssertion,
C2paAssetRef,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the website still shows on Verify without this import so not sure if it's necessary , but all other assertions are included @dkozma

@@ -111,11 +111,26 @@ export type CreativeWorkAssertion = Assertion<
url?: string;
}
>;
interface Reference {
Copy link

Choose a reason for hiding this comment

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

Nit: space before this line please

reference: Reference;
}

export declare type C2paAssetRef = Assertion<
Copy link

Choose a reason for hiding this comment

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

Suggested change
export declare type C2paAssetRef = Assertion<
export type C2paAssetRef = Assertion<

I don't think we need declare here.

}

interface Resource {
reference: Reference;
Copy link

Choose a reason for hiding this comment

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

Oh looking at the proposal it looks like Resource can take an optional description as a string. Can you add?

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.

2 participants