1
-
2
1
export const rules_schemas = [
3
2
{
4
3
uri : 'http://less/permission.json' , // id of the first schema
@@ -7,87 +6,87 @@ export const rules_schemas = [
7
6
type : 'object' ,
8
7
properties : {
9
8
read : {
10
- $ref : 'http://less/permission-config.json'
9
+ $ref : 'http://less/permission-config.json' ,
11
10
} ,
12
11
update : {
13
- $ref : 'http://less/permission-config-for-data.json'
12
+ $ref : 'http://less/permission-config-for-data.json' ,
14
13
} ,
15
14
add : {
16
- $ref : 'http://less/permission-config-for-data.json'
15
+ $ref : 'http://less/permission-config-for-data.json' ,
17
16
} ,
18
17
remove : {
19
- $ref : 'http://less/permission-config.json'
18
+ $ref : 'http://less/permission-config.json' ,
20
19
} ,
21
20
count : {
22
- $ref : 'http://less/permission-config.json'
21
+ $ref : 'http://less/permission-config.json' ,
23
22
} ,
24
- ' $schema' : {
25
- $ref : 'http://less/data.schema.json'
26
- }
27
- }
28
- }
23
+ $schema : {
24
+ $ref : 'http://less/data.schema.json' ,
25
+ } ,
26
+ } ,
27
+ } ,
29
28
} ,
30
29
{
31
30
uri : 'http://less/permission-config.json' , // id of the second schema
32
31
schema : {
33
32
type : [ 'boolean' , 'string' , 'object' ] ,
34
33
properties : {
35
34
condition : {
36
- type : [ 'string' , 'boolean' ]
35
+ type : [ 'string' , 'boolean' ] ,
37
36
} ,
38
37
cond : {
39
- type : [ 'string' , 'boolean' ]
38
+ type : [ 'string' , 'boolean' ] ,
40
39
} ,
41
40
query : {
42
- $ref : 'http://less/data.schema.json'
41
+ $ref : 'http://less/data.schema.json' ,
43
42
} ,
44
43
multi : {
45
- type : [ 'boolean' , 'string' ]
46
- }
47
- }
48
- }
44
+ type : [ 'boolean' , 'string' ] ,
45
+ } ,
46
+ } ,
47
+ } ,
49
48
} ,
50
49
{
51
50
uri : 'http://less/permission-config-for-data.json' , // id of the second schema
52
51
schema : {
53
52
type : [ 'boolean' , 'string' , 'object' ] ,
54
53
properties : {
55
54
condition : {
56
- type : [ 'string' , 'boolean' ]
55
+ type : [ 'string' , 'boolean' ] ,
57
56
} ,
58
57
cond : {
59
- type : [ 'string' , 'boolean' ]
58
+ type : [ 'string' , 'boolean' ] ,
60
59
} ,
61
60
query : {
62
- $ref : 'http://less/data.schema.json'
61
+ $ref : 'http://less/data.schema.json' ,
63
62
} ,
64
63
data : {
65
- $ref : 'http://less/data.schema.json'
64
+ $ref : 'http://less/data.schema.json' ,
66
65
} ,
67
66
multi : {
68
- type : [ 'boolean' , 'string' ]
69
- }
70
- }
71
- }
67
+ type : [ 'boolean' , 'string' ] ,
68
+ } ,
69
+ } ,
70
+ } ,
72
71
} ,
73
72
{
74
73
uri : 'http://less/data.schema.json' , // id of the second schema
75
74
schema : {
76
75
type : [ 'object' , 'boolean' , 'string' ] ,
77
76
patternProperties : {
78
77
'.*' : {
79
- $ref : 'http://less/constraints.json'
80
- }
81
- }
82
- }
78
+ $ref : 'http://less/constraints.json' ,
79
+ } ,
80
+ } ,
81
+ } ,
83
82
} ,
84
83
{
85
84
uri : 'http://less/constraints.json' , // id of the second schema
86
85
schema : {
87
86
type : 'object' ,
88
87
properties : {
89
88
condition : {
90
- type : [ 'string' , 'boolean' ]
89
+ type : [ 'string' , 'boolean' ] ,
91
90
} ,
92
91
required : { type : 'boolean' } ,
93
92
default : { type : [ 'string' , 'boolean' , 'number' , 'array' , 'object' ] } ,
@@ -96,21 +95,21 @@ export const rules_schemas = [
96
95
type : 'array' ,
97
96
items : [
98
97
{ type : 'number' } ,
99
- { type : 'number' }
100
- ]
98
+ { type : 'number' } ,
99
+ ] ,
101
100
} ,
102
101
length : {
103
102
type : 'array' ,
104
103
items : [
105
104
{ type : 'integer' } ,
106
- { type : 'integer' }
107
- ]
105
+ { type : 'integer' } ,
106
+ ] ,
108
107
} ,
109
108
in : { type : 'array' } ,
110
109
match : { type : 'string' } ,
111
110
exists : { type : 'string' } ,
112
- notExists : { type : 'string' }
113
- }
114
- }
115
- }
111
+ notExists : { type : 'string' } ,
112
+ } ,
113
+ } ,
114
+ } ,
116
115
]
0 commit comments