Repository navigation
Expand file tree
/
Copy pathcrew-note-v1.schema.json
More file actions
65 lines (65 loc) · 2.22 KB
/
Copy pathcrew-note-v1.schema.json
File metadata and controls
65 lines (65 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "urn:frontier-systems:schema:crew-note:v1",
"title": "Frontier Systems Crew Note v1",
"description": "Canonical versioned note record used by PDAs and crew workspaces.",
"type": "object",
"additionalProperties": false,
"required": [
"schema_version",
"note_id",
"world_id",
"author_principal_id",
"revision_author_principal_id",
"revision",
"title",
"content",
"visibility",
"created_at",
"updated_at"
],
"properties": {
"schema_version": { "const": 1 },
"note_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"world_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"colony_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"author_principal_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"revision_author_principal_id": { "type": "string", "minLength": 1, "maxLength": 128 },
"revision": { "type": "integer", "minimum": 1 },
"title": { "type": "string", "minLength": 1, "maxLength": 160 },
"content": { "type": "string", "maxLength": 50000 },
"visibility": {
"type": "object",
"additionalProperties": false,
"required": ["mode"],
"properties": {
"mode": {
"enum": ["private", "named_principals", "crew_group", "colony_board"]
},
"principal_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 256,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"group_id": { "type": "string", "minLength": 1, "maxLength": 128 }
}
},
"tags": {
"type": "array",
"uniqueItems": true,
"maxItems": 64,
"items": { "type": "string", "minLength": 1, "maxLength": 48 }
},
"linked_entity_ids": {
"type": "array",
"uniqueItems": true,
"maxItems": 256,
"items": { "type": "string", "minLength": 1, "maxLength": 128 }
},
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"parent_revision": { "type": "integer", "minimum": 1 },
"change_summary": { "type": "string", "maxLength": 500 }
}
}