Skip to content

Commit a700bfa

Browse files
committed
fix: Assertion structure
1 parent ead739f commit a700bfa

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

examples/sign.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ def callback_signer_es256(data: bytes) -> bytes:
8383
"actions": [
8484
{
8585
"action": "c2pa.created",
86-
"parameters": {
87-
# could hold additional information about this step
88-
# eg. model used, etc.
89-
}
86+
"digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/digitalCreation",
87+
"softwareAgent": "Python C2PA SDK example"
9088
}
9189
]
9290
}

examples/sign_info.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@
7979
"actions": [
8080
{
8181
"action": "c2pa.created",
82-
"parameters": {
83-
# could hold additional information about this step
84-
}
82+
"digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/digitalCreation",
83+
"softwareAgent": "Python C2PA SDK example",
8584
}
8685
]
8786
}

tests/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"actions": [
4444
{
4545
"action": "c2pa.created",
46-
"parameters": {
47-
}
46+
"digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/digitalCreation",
47+
"softwareAgent": "Python C2PA SDK example"
4848
}
4949
]
5050
}

tests/test_unit_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ def setUp(self):
340340
"actions": [
341341
{
342342
"action": "c2pa.created",
343-
"parameters": {
344-
}
343+
"digitalSourceType": "http://cv.iptc.org/newscodes/digitalsourcetype/digitalCreation",
344+
"softwareAgent": "Python C2PA SDK unit tests"
345345
}
346346
]
347347
}

0 commit comments

Comments
 (0)