Skip to content

Commit 09c5278

Browse files
committed
chore: sync owner evidence schema
1 parent 03f9bda commit 09c5278

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "agent.semantic-protocols.semantic-owner-item-evidence.v2",
4+
"title": "Semantic owner-item evidence",
5+
"type": "object",
6+
"required": ["schemaId", "schemaVersion", "language", "owner", "items", "edges"],
7+
"properties": {
8+
"schemaId": { "const": "semantic-owner-item-evidence.v2" },
9+
"schemaVersion": { "const": "2" },
10+
"language": { "type": "string", "minLength": 1 },
11+
"owner": {
12+
"type": "object",
13+
"required": ["path"],
14+
"properties": { "path": { "type": "string", "minLength": 1 } },
15+
"additionalProperties": false
16+
},
17+
"items": {
18+
"type": "array",
19+
"items": { "$ref": "#/$defs/item" }
20+
},
21+
"edges": { "type": "object" },
22+
"admission": { "$ref": "#/$defs/admission" }
23+
},
24+
"$defs": {
25+
"admission": {
26+
"type": "object",
27+
"required": ["status", "requestedLanguage"],
28+
"properties": {
29+
"status": {
30+
"enum": ["accepted", "owner-language-mismatch"]
31+
},
32+
"requestedLanguage": { "type": "string", "minLength": 1 },
33+
"ownerExtension": { "type": "string", "minLength": 1 },
34+
"expectedExtensions": {
35+
"type": "array",
36+
"items": { "type": "string", "minLength": 1 }
37+
},
38+
"suggestedLanguage": { "type": "string", "minLength": 1 }
39+
},
40+
"additionalProperties": false
41+
},
42+
"item": {
43+
"type": "object",
44+
"required": ["kind", "name", "proof"],
45+
"properties": {
46+
"kind": { "type": "string", "minLength": 1 },
47+
"name": { "type": "string", "minLength": 1 },
48+
"proof": { "type": "object" },
49+
"readSelector": { "type": "string", "minLength": 1 },
50+
"evidenceSelector": { "type": "string", "minLength": 1 },
51+
"enclosingReadSelector": { "type": "string", "minLength": 1 },
52+
"graphOnly": { "const": true },
53+
"next": { "type": "object" }
54+
},
55+
"oneOf": [
56+
{ "required": ["readSelector"] },
57+
{ "required": ["evidenceSelector", "graphOnly"] }
58+
]
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)