~james/core

core/lexicons/git/temp2/getDiff.json -rw-r--r-- 1.3 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 16 hours ago
                                                                                
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
{
  "lexicon": 1,
  "id": "sh.tangled.git.temp2.getDiff",
  "defs": {
    "main": {
      "type": "query",
      "parameters": {
        "type": "params",
        "required": ["baseRepo", "baseCommit", "headRepo", "headCommit"],
        "properties": {
          "baseRepo": { "type": "string", "format": "did" },
          "baseCommit": { "type": "string" },
          "headRepo": { "type": "string", "format": "did" },
          "headCommit": { "type": "string" }
        }
      },
      "output": {
        "encoding": "application/json",
        "description": "TBD",
        "schema": {
          "type": "object",
          "required": ["diffs"],
          "properties": {
            "diffs": {
              "type": "array",
              "items": { "type": "ref", "ref": "sh.tangled.git.defs#fileDiff" }
            }
          }
        }
      },
      "errors": [
        {
          "name": "RepoNotFound",
          "description": "Repository not found or access denied"
        },
        {
          "name": "RevisionNotFound",
          "description": "One or both revisions not found"
        },
        {
          "name": "InvalidRequest",
          "description": "Invalid request parameters"
        },
        {
          "name": "CompareError",
          "description": "Failed to compare revisions"
        }
      ]
    }
  }
}