~james/core

core/lexicons/git/temp/listLanguages.json -rw-r--r-- 2.2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
  "lexicon": 1,
  "id": "sh.tangled.git.temp.listLanguages",
  "defs": {
    "main": {
      "type": "query",
      "parameters": {
        "type": "params",
        "required": ["repo"],
        "properties": {
          "repo": {
            "type": "string",
            "format": "did",
            "description": "DID of the repository"
          },
          "ref": {
            "type": "string",
            "description": "Git reference (branch, tag, or commit SHA)",
            "default": "HEAD"
          },
          "indexedOnly": {
            "type": "boolean",
            "description": "Only serve stored languages, failing with NotIndexed rather than analyzing the commit on demand",
            "default": false
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["ref", "languages", "total"],
          "properties": {
            "ref": {
              "type": "string",
              "description": "The git reference used"
            },
            "languages": {
              "type": "array",
              "items": {
                "type": "ref",
                "ref": "#language"
              }
            },
            "total": {
              "type": "integer",
              "description": "Total size of all analyzed files in bytes"
            }
          }
        }
      },
      "errors": [
        {
          "name": "RepoNotFound",
          "description": "Repository not found or access denied"
        },
        {
          "name": "RefNotFound",
          "description": "Git reference not found"
        },
        {
          "name": "NotIndexed",
          "description": "No stored languages for this commit yet, only with indexedOnly"
        },
        {
          "name": "InvalidRequest",
          "description": "Invalid request parameters"
        }
      ]
    },
    "language": {
      "type": "object",
      "required": ["name", "size"],
      "properties": {
        "name": {
          "type": "string",
          "description": "Programming language name"
        },
        "size": {
          "type": "integer",
          "description": "Total size of files in this language (bytes)"
        }
      }
    }
  }
}