-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestgen-response.schema.json
More file actions
54 lines (54 loc) · 1.65 KB
/
testgen-response.schema.json
File metadata and controls
54 lines (54 loc) · 1.65 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://aicore.dev/schemas/agent/testgen-response-1.0.schema.json",
"title": "AIC Agent Testgen Response v1.0",
"type": "object",
"additionalProperties": false,
"required": ["protocol_version", "phase", "strategy", "seed", "target", "artifacts", "notes"],
"properties": {
"protocol_version": { "const": "1.0" },
"phase": { "const": "testgen" },
"strategy": {
"type": "string",
"enum": ["boundary", "invariant-violation", "exhaustive-match", "effect-coverage"]
},
"seed": { "type": "integer", "minimum": 0 },
"target": { "$ref": "#/$defs/target" },
"artifacts": {
"type": "array",
"items": { "$ref": "#/$defs/artifact" }
},
"notes": {
"type": "array",
"items": { "type": "string" }
}
},
"$defs": {
"target": {
"type": "object",
"additionalProperties": false,
"required": ["name", "kind"],
"properties": {
"name": { "type": "string" },
"kind": { "type": "string", "enum": ["function", "struct", "enum"] },
"module": { "type": "string" }
}
},
"artifact": {
"type": "object",
"additionalProperties": false,
"required": ["kind", "name", "path_hint", "content"],
"properties": {
"kind": {
"type": "string",
"enum": ["attribute-test-fixture", "run-pass-fixture", "compile-fail-fixture"]
},
"name": { "type": "string" },
"path_hint": { "type": "string" },
"content": { "type": "string" },
"written_path": { "type": "string" },
"reason": { "type": "string" }
}
}
}
}