Skip to content

Commit 058751a

Browse files
committed
This time with the actual schema...
1 parent 6f306d1 commit 058751a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

softbinding-algorithm-entry-schema.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"alg": {
2020
"type": "string",
21-
"pattern": "(c2pa\\.|[A-Za-z0-9\\-\\.]+)",
21+
"pattern": "([a-zA-Z0-9]+\\.[a-zA-Z0-9\\.]+)",
2222
"description": "Entity-specific namespace as specified for C2PA Assertions labels that shall begin with the Internet domain name for the entity similar to how Java packages are defined (e.g., `com.example.algo1`, `net.example.algos.algo2`)"
2323
},
2424
"type": {
@@ -59,6 +59,14 @@
5959
"type": "string",
6060
"description": "Human readable description of the algorithm."
6161
},
62+
"categories": {
63+
"type": "array",
64+
"description": "This allows specifying values that can be used to cluster this algorithm with others of the same or similar values. For example an algorithm that is used in a certain context (e.g., verified news, advertising). The format of these categories follows the entity-specific namespace as specified for C2PA Assertions labels that shall begin with the (reversed) Internet domain name for the entity similar to how Java packages are defined (e.g., `org.iptc.watermarking`, `net.example.cluster.context1`)",
65+
"pattern": "([a-zA-Z0-9]+\\.[a-zA-Z0-9\\.]+)",
66+
"items": {
67+
"type": "string"
68+
}
69+
},
6270
"dateEntered": {
6371
"type": "string",
6472
"format": "date-time",

0 commit comments

Comments
 (0)