-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpop-persona.schema.json
More file actions
56 lines (56 loc) · 1.89 KB
/
Copy pathpop-persona.schema.json
File metadata and controls
56 lines (56 loc) · 1.89 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/joy7758/persona-object-protocol/main/schema/pop-persona.schema.json",
"title": "POP Persona Object",
"description": "Current preview alias for the POP persona schema. Versioned schemas under schema/versions/ are the normative historical snapshots. The persona core is defined separately from memory, tools, and permissions.",
"type": "object",
"additionalProperties": false,
"$defs": {
"nonEmptyString": {
"type": "string",
"minLength": 1,
"description": "A required non-empty string value."
},
"stringList": {
"type": "array",
"items": {
"$ref": "#/$defs/nonEmptyString"
},
"description": "An ordered list of non-empty string values."
},
"metadataObject": {
"type": "object",
"additionalProperties": true,
"description": "Loose metadata for annotations that remain outside the POP persona core."
}
},
"properties": {
"$schema": {
"type": "string",
"format": "uri",
"description": "Optional self-declared schema identifier for the POP persona object."
},
"id": { "$ref": "#/$defs/nonEmptyString" },
"version": { "$ref": "#/$defs/nonEmptyString" },
"name": { "$ref": "#/$defs/nonEmptyString" },
"summary": { "$ref": "#/$defs/nonEmptyString" },
"traits": { "$ref": "#/$defs/stringList" },
"communication_style": { "$ref": "#/$defs/stringList" },
"task_orientation": { "$ref": "#/$defs/stringList" },
"boundaries": { "$ref": "#/$defs/stringList" },
"preferred_outputs": { "$ref": "#/$defs/stringList" },
"metadata": { "$ref": "#/$defs/metadataObject" }
},
"required": [
"id",
"version",
"name",
"summary",
"traits",
"communication_style",
"task_orientation",
"boundaries",
"preferred_outputs",
"metadata"
]
}