Now let's take a silly one
1{
2 "lexicon": 1,
3 "id": "sh.tangled.repo.tag",
4 "defs": {
5 "main": {
6 "type": "query",
7 "parameters": {
8 "type": "params",
9 "required": [
10 "repo",
11 "tag"
12 ],
13 "properties": {
14 "repo": {
15 "type": "string",
16 "description": "Repository identifier in format 'did:plc:.../repoName'"
17 },
18 "tag": {
19 "type": "string",
20 "description": "Name of tag, such as v1.3.0"
21 }
22 }
23 },
24 "output": {
25 "encoding": "*/*"
26 },
27 "errors": [
28 {
29 "name": "RepoNotFound",
30 "description": "Repository not found or access denied"
31 },
32 {
33 "name": "TagNotFound",
34 "description": "Tag not found"
35 },
36 {
37 "name": "InvalidRequest",
38 "description": "Invalid request parameters"
39 }
40 ]
41 }
42 }
43}