-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
45 lines (45 loc) · 1.72 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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"patternProperties": {
"^\\$": true,
"^(get|create|search|remove|retrieve|update|submit|complete|delete)[A-Z][a-zA-Z0-9_]*$": {
"description": "Represents one single HTTP transaction as a function in the API client.",
"type": "object",
"properties": {
"endpoint": {
"description": "The HTTP URL endpoint for this transaction, without the leading slash.",
"type": "string",
"pattern": "^[^/].+[^/]$"
},
"description": {
"description": "A short description, used for documentation.",
"type": "string",
"minLength": 1
},
"parameters": {
"description": "List all query parameters here.",
"type": "object",
"patternProperties": {
"^[a-zA-Z][a-zA-Z0-9_]*$": {
"description": "Represents one query parameter with a corresponding data type.",
"enum": [
"string",
"number",
"boolean"
],
"default": "string"
}
},
"minProperties": 1,
"additionalProperties": false
}
},
"required": [
"endpoint"
],
"additionalProperties": false
}
},
"additionalProperties": false
}