{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "FileAnnotation.schema.json", "title": "FileAnnotation", "description": "What one source wrote about a file's content: a value of `FileNode.annotations`, keyed by its source id. Answered only while the file holds the content it was written of.", "type": "object", "properties": { "source": { "$ref": "Common.schema.json#/$defs/Source" }, "blobId": { "description": "The content the annotation is of: the file's current blobId.", "$ref": "Common.schema.json#/$defs/Id" }, "updated": { "description": "When the source last wrote it.", "$ref": "Common.schema.json#/$defs/UTCDate" }, "description": { "description": "A description, at most 2000 characters, or null.", "anyOf": [ { "type": "string", "maxLength": 2000 }, { "type": "null" } ] }, "labels": { "type": "array", "maxItems": 100, "items": { "$ref": "Common.schema.json#/$defs/Label" }, "description": "At most 100 labels, unique without case." }, "textBlobId": { "description": "The file's text as the source wrote it (text/plain; charset=utf-8), downloadable by every reader of the file, or null.", "anyOf": [ { "$ref": "Common.schema.json#/$defs/Id" }, { "type": "null" } ] }, "fields": { "type": "object", "description": "The values of the fields the source's schema defines, by field name. A value written under a type the schema no longer gives the field, or of a field the schema no longer names, is not answered.", "propertyNames": { "pattern": "^[a-z][a-zA-Z0-9]{0,63}$" }, "additionalProperties": { "$ref": "FieldValue.schema.json" } } }, "required": [ "source", "blobId", "updated", "description", "labels", "textBlobId", "fields" ], "additionalProperties": false }