-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
53 lines (53 loc) · 1.84 KB
/
schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON S-expression Language Schema",
"description": "Schema for a custom JSON S-expression language.",
"definitions": {
"ref": {
"title": "Reference Operator",
"description": "A reference to a function or identifier.",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": [
{ "enum": ["ref"], "title": "Operator", "description": "The operator type, representing a reference to a function or identifier." },
{ "type": "string", "title": "Identifier", "description": "The identifier or function name." }
]
},
"call": {
"title": "Call Operator",
"description": "A function call.",
"type": "array",
"minItems": 2,
"maxItems": 3,
"items": [
{ "const": "call", "title": "Operator", "description": "The operator type, representing a function call." },
{ "$ref": "#/definitions/ref", "title": "Reference", "description": "The reference to a function or identifier." },
{
"type": "array",
"items": {
"$ref": "#"
},
"title": "Arguments",
"description": "The arguments passed to the function."
}
]
}
},
"oneOf": [
{ "$ref": "#/definitions/ref" },
{ "$ref": "#/definitions/call" },
{ "type": "number", "title": "Number", "description": "A JSON number." },
{ "type": "string", "title": "String", "description": "A JSON string." },
{ "type": "boolean", "title": "Boolean", "description": "A JSON boolean." },
{ "type": "null", "title": "Null", "description": "A JSON null value." },
{
"title": "Object",
"description": "A generic JSON object with additional properties.",
"type": "object",
"additionalProperties": {
"$ref": "#"
}
}
]
}