-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.toon-schema.json
More file actions
66 lines (66 loc) · 1.61 KB
/
python.toon-schema.json
File metadata and controls
66 lines (66 loc) · 1.61 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
55
56
57
58
59
60
61
62
63
64
65
66
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Code2Logic TOON Schema",
"description": "Schema for Code2Logic TOON (Token-Oriented Object Notation) format",
"type": "object",
"properties": {
"M": {
"type": "array",
"description": "Modules as [path,lines] pairs",
"items": {
"type": "array",
"items": [
{
"type": "string",
"description": "Module path"
},
{
"type": "integer",
"description": "Lines of code"
}
],
"minItems": 2,
"maxItems": 2
}
},
"D": {
"type": "object",
"description": "Module details with compact keys",
"patternProperties": {
".*": {
"type": "object",
"properties": {
"i": {
"type": "array",
"items": {
"type": "string"
},
"description": "Compact imports (grouped)"
},
"e": {
"type": "array",
"items": {
"type": "string"
},
"description": "Exports"
},
"c": {
"type": "array",
"items": {
"type": "string"
},
"description": "Classes with inline method counts"
},
"f": {
"type": "array",
"items": {
"type": "string"
},
"description": "Functions with signatures"
}
}
}
}
}
}
}