-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrulesSchema.json
40 lines (40 loc) · 1.27 KB
/
rulesSchema.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
{
"$schema": "http://json-schema.org/schema#",
"$id": "https://github.com/duncsully/ds-sorter",
"title": "Rules",
"type": "array",
"items": {
"type": "object",
"required": ["key"],
"properties": {
"key": {
"type": "string",
"description": "Attribute or property name"
},
"isProperty": {
"type": "boolean",
"nullable": true,
"description": "True if property, else attribute. Note: attributes will automatically trigger a re-sort if changed. Properties will not."
},
"selector": {
"type": "string",
"nullable": true,
"description": "Selector to lookup descendants to get attribute/property off of"
},
"reverse": {
"type": "boolean",
"nullable": true,
"description": "If true, sort in reverse order relative to the global sort direction"
},
"nestedProps": {
"type": "array",
"items": {
"type": "string"
},
"nullable": true,
"description": "A path of properties to get a value from nested objects"
}
},
"additionalProperties": false
}
}