-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcaller_graph.schema.json
More file actions
34 lines (34 loc) · 1.37 KB
/
Copy pathcaller_graph.schema.json
File metadata and controls
34 lines (34 loc) · 1.37 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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/gaurav0107/superhuman/schemas/caller_graph.schema.json",
"title": "caller_graph",
"description": "Call-site analysis for a target function in a repo, recording each caller's location, execution context, and refactor safety. Owner: repo-profiler.",
"type": "object",
"additionalProperties": true,
"required": ["repo", "issue_number", "target_function", "callers", "contexts_found"],
"properties": {
"repo": {"type": "string", "description": "owner/repo slug"},
"issue_number": {"type": "integer"},
"generated_at": {"type": "string", "format": "date-time"},
"target_function": {"type": "string"},
"callers": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"required": ["location", "caller_function", "execution_context", "safe_under_refactor", "notes"],
"properties": {
"location": {"type": "string", "description": "file path and line number"},
"caller_function": {"type": "string"},
"execution_context": {"type": "string"},
"safe_under_refactor": {"type": "boolean"},
"notes": {"type": "string"}
}
}
},
"contexts_found": {
"type": "array",
"items": {"type": "string"}
}
}
}