Skip to content

Commit 6a7372c

Browse files
committed
Add tags field to RecordsWrite interface descriptor with detailed description on its usage and constraints
1 parent 08c081b commit 6a7372c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/spec.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,9 @@ directory of the specification.
10521052

10531053
- The object ****MUST**** contain a `dateCreated` property, and its value ****MUST**** be an [[spec:rfc3339]] ISO 8601 timestamp that ****MUST**** be set and interpreted as the time the `RecordsWrite` was created by the DID owner or another permitted party.
10541054
- The object ****MAY**** contain a `datePublished` property; if present, its value ****MUST**** be an [[spec:rfc3339]] ISO 8601 timestamp that ****MUST**** be set and interpreted as the time the `RecordsWrite` was published by the DID owner or another permitted party.
1055+
- The object ****MAY**** contain a `tags` property; if present, its value ****MUST**** be an object with at least one and at most ten properties. Each property value in the `tags` object can be one of the following types: string, number, boolean, or an array of strings/numbers. Arrays must have at least one item and no more than ten items. These tags can be used for categorization and filtering. The `tags` field can be constrained by a protocol definition.
1056+
1057+
10551058

10561059
```json
10571060
{ // Message

0 commit comments

Comments
 (0)