A person's review of one thing: which adjectives it is, and is not. One record per subject and locale per repo; update it rather than creating another. If a repo ever holds more than one review of the same subject in the same locale, merge them into the earliest-created one (tag conflicts: latest updatedAt wins, then direction nearer 0, then positive) and delete the rest.
tid
Timestamp-based ID
Properties
createdAt
string
datetime
Required
An RFC 3339 formatted timestamp.
locale
string
language
Optional
The language the whole review is meant to be read in (BCP 47), not the language of any one adjective. Readers may render the sentence in this locale.
subject
ref
#subject
Required
The thing being tagged, described well enough to display without fetching the referenced record. Readers can decide whether the cid must match for their purposes, or whether the at-uri alone is enough.
tags
array
of
ref
#tag
Required
The adjectives this review applies to the subject. An adjective should appear at most once; readers keep the last entry when it repeats.
maxLength: 32 itemsminLength: 1 itemsupdatedAt
string
datetime
Required
An RFC 3339 formatted timestamp.
View raw schema
{
"key": "tid",
"type": "record",
"record": {
"type": "object",
"required": [
"subject",
"tags",
"createdAt",
"updatedAt"
],
"properties": {
"tags": {
"type": "array",
"items": {
"ref": "#tag",
"type": "ref"
},
"maxLength": 32,
"minLength": 1,
"description": "The adjectives this review applies to the subject. An adjective should appear at most once; readers keep the last entry when it repeats."
},
"locale": {
"type": "string",
"format": "language",
"description": "The language the whole review is meant to be read in (BCP 47), not the language of any one adjective. Readers may render the sentence in this locale."
},
"subject": {
"ref": "#subject",
"type": "ref",
"description": "The thing being tagged, described well enough to display without fetching the referenced record. Readers can decide whether the cid must match for their purposes, or whether the at-uri alone is enough."
},
"createdAt": {
"type": "string",
"format": "datetime"
},
"updatedAt": {
"type": "string",
"format": "datetime"
}
}
},
"description": "A person's review of one thing: which adjectives it is, and is not. One record per subject and locale per repo; update it rather than creating another. If a repo ever holds more than one review of the same subject in the same locale, merge them into the earliest-created one (tag conflicts: latest updatedAt wins, then direction nearer 0, then positive) and delete the rest."
}