-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathquery.definition.schema.json
More file actions
72 lines (72 loc) · 2.33 KB
/
Copy pathquery.definition.schema.json
File metadata and controls
72 lines (72 loc) · 2.33 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
67
68
69
70
71
72
{
"$schema": "https://json-schema.org/draft-04/schema#",
"properties": {
"discriminators": {
"items": {
"properties": {
"field": {
"type": "string",
"description": "DiscriminatorField is the field used to link behavior to this specific\nquery type. It is typically \"queryType\", but can be another field if necessary"
},
"value": {
"type": "string",
"description": "The discriminator value"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"field",
"value"
]
},
"type": "array",
"description": "Multiple schemas can be defined using discriminators"
},
"description": {
"type": "string",
"description": "Describe whe the query type is for"
},
"schema": {
"$ref": "https://json-schema.org/draft-04/schema#",
"type": "object",
"description": "The query schema represents the properties that can be sent to the API\nIn many cases, this may be the same properties that are saved in a dashboard\nIn the case where the save model is different, we must also specify a save model"
},
"examples": {
"items": {
"properties": {
"name": {
"type": "string",
"description": "Version identifier or empty if only one exists"
},
"description": {
"type": "string",
"description": "Optionally explain why the example is interesting"
},
"saveModel": {
"additionalProperties": true,
"type": "object",
"description": "An example value saved that can be saved in a dashboard"
}
},
"additionalProperties": false,
"type": "object"
},
"type": "array",
"description": "Examples (include a wrapper) ideally a template!"
},
"changelog": {
"items": {
"type": "string"
},
"type": "array",
"description": "Changelog defines the changed from the previous version\nAll changes in the same version *must* be backwards compatible\nOnly notable changes will be shown here, for the full version history see git!"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"schema",
"examples"
]
}