-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathai-config.schema.json
91 lines (90 loc) · 1.83 KB
/
ai-config.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
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
87
88
89
90
91
{
"properties": {
"$schema": {"type": "string"},
"request": {"$ref": "#/$defs/request-config"},
"response": {"$ref": "#/$defs/response-config"},
"tag": {"$ref": "#/$defs/tag-config"},
"prompts": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"langs": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"required": ["request", "response"],
"additionalProperties": false,
"$defs": {
"request-config": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"method": {
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": true
},
"body": {
"type": "object",
"additionalProperties": true
}
},
"required": ["url", "method"],
"additionalProperties": false
},
"response-config": {
"type": "object",
"properties": {
"contentPath": {"type": "string"},
"errorPath": {"type": "string"},
"statusCodePath": {"type": "string"},
"successStatus": {
"type": "array",
"uniqueItems": true,
"contains": {
"type": "integer"
}
}
},
"required": ["contentPath"],
"additionalProperties": false,
"dependentRequired": {
"statusCodePath": ["errorPath"]
}
},
"tag-config": {
"type": "object",
"properties": {
"opening": {
"type": "object",
"properties": {
"start": {"type": "string"},
"end": {"type": "string"}
},
"required": ["start", "end"],
"additionalProperties": false
},
"closing": {
"type": "object",
"properties": {
"start": {"type": "string"},
"end": {"type": "string"}
},
"required": ["start", "end"],
"additionalProperties": false
}
},
"required": ["opening", "closing"],
"additionalProperties": false
}
}
}