File tree 4 files changed +62
-55
lines changed
4 files changed +62
-55
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " jsonscript" ,
3
- "version" : " 0.4.1 " ,
3
+ "version" : " 0.4.2 " ,
4
4
"description" : " Platform independent asynchronous and concurrent scripting language using JSON format" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 200
200
"id" : " #macro_exec_0" ,
201
201
"description" : " short syntax for executor call" ,
202
202
"type" : " object" ,
203
- "patternGroups " : {
203
+ "patternProperties " : {
204
204
"^\\ $\\ $([^\\ .]+)\\ .([^\\ .]+)$" : {
205
- "schema" : {
206
- "$ref" : " #"
207
- },
208
- "minimum" : 1
205
+ "$ref" : " #"
209
206
}
210
207
},
211
208
"maxProperties" : 1 ,
212
- "additionalProperties" : false
209
+ "minProperties" : 1 ,
210
+ "additionalProperties" : false ,
211
+ "patternRequired" : [
212
+ " ^\\ $\\ $([^\\ .]+)\\ .([^\\ .]+)$"
213
+ ]
213
214
},
214
215
"_macro_exec_1" : {
215
216
"id" : " #macro_exec_1" ,
216
217
"description" : " short syntax for executor call" ,
217
218
"type" : " object" ,
218
- "patternGroups " : {
219
+ "patternProperties " : {
219
220
"^\\ $\\ $([^\\ .]+)$" : {
220
- "schema" : {
221
- "$ref" : " #"
222
- },
223
- "minimum" : 1
221
+ "$ref" : " #"
224
222
}
225
223
},
226
224
"maxProperties" : 1 ,
227
- "additionalProperties" : false
225
+ "minProperties" : 1 ,
226
+ "additionalProperties" : false ,
227
+ "patternRequired" : [
228
+ " ^\\ $\\ $([^\\ .]+)$"
229
+ ]
228
230
},
229
231
"_macro_call_0" : {
230
232
"id" : " #macro_call_0" ,
231
233
"description" : " short syntax for function call" ,
232
234
"type" : " object" ,
233
- "patternGroups " : {
235
+ "patternProperties " : {
234
236
"^\\ $\\ #(.+)$" : {
235
- "schema" : {
236
- "$ref" : " #"
237
- },
238
- "minimum" : 1
237
+ "$ref" : " #"
239
238
}
240
239
},
241
240
"maxProperties" : 1 ,
242
- "additionalProperties" : false
241
+ "minProperties" : 1 ,
242
+ "additionalProperties" : false ,
243
+ "patternRequired" : [
244
+ " ^\\ $\\ #(.+)$"
245
+ ]
243
246
},
244
247
"_macro_calc_0" : {
245
248
"id" : " #macro_calc_0" ,
246
249
"description" : " short calculations syntax" ,
247
250
"type" : " object" ,
248
- "patternGroups " : {
251
+ "patternProperties " : {
249
252
"\\ $([+\\ -*/=!<>&\\ |^]{1,2})" : {
250
- "schema" : {
251
- "$ref" : " #"
252
- },
253
- "minimum" : 1
253
+ "$ref" : " #"
254
254
}
255
255
},
256
256
"maxProperties" : 1 ,
257
- "additionalProperties" : false
257
+ "minProperties" : 1 ,
258
+ "additionalProperties" : false ,
259
+ "patternRequired" : [
260
+ " \\ $([+\\ -*/=!<>&\\ |^]{1,2})"
261
+ ]
258
262
},
259
263
"parallel" : {
260
264
"id" : " #parallel" ,
Original file line number Diff line number Diff line change 59
59
" id" : " #macro_{{=macro.name}}_{{=i}}" ,
60
60
" description" : " {{=macro.description}}" ,
61
61
" type" : " object" ,
62
- " patternGroups" : {
63
- " {{= patternKey }}" : {
64
- " schema" : { " $ref" : " #" },
65
- " minimum" : 1
66
- }
62
+ " patternProperties" : {
63
+ " {{= patternKey }}" : { " $ref" : " #" }
67
64
},
68
65
" maxProperties" : 1,
69
- " additionalProperties" : false
66
+ " minProperties" : 1,
67
+ " additionalProperties" : false,
68
+ " patternRequired" : [ " {{= patternKey }}" ]
70
69
},
71
70
{{~}}
72
71
{{~}}
Original file line number Diff line number Diff line change 346
346
"id" : " #macro_exec_0" ,
347
347
"description" : " short syntax for executor call" ,
348
348
"type" : " object" ,
349
- "patternGroups " : {
349
+ "patternProperties " : {
350
350
"^\\ $\\ $([^\\ .]+)\\ .([^\\ .]+)$" : {
351
- "schema" : {
352
- "$ref" : " #"
353
- },
354
- "minimum" : 1
351
+ "$ref" : " #"
355
352
}
356
353
},
357
354
"maxProperties" : 1 ,
358
- "additionalProperties" : false
355
+ "minProperties" : 1 ,
356
+ "additionalProperties" : false ,
357
+ "patternRequired" : [
358
+ " ^\\ $\\ $([^\\ .]+)\\ .([^\\ .]+)$"
359
+ ]
359
360
},
360
361
"_macro_exec_1" : {
361
362
"id" : " #macro_exec_1" ,
362
363
"description" : " short syntax for executor call" ,
363
364
"type" : " object" ,
364
- "patternGroups " : {
365
+ "patternProperties " : {
365
366
"^\\ $\\ $([^\\ .]+)$" : {
366
- "schema" : {
367
- "$ref" : " #"
368
- },
369
- "minimum" : 1
367
+ "$ref" : " #"
370
368
}
371
369
},
372
370
"maxProperties" : 1 ,
373
- "additionalProperties" : false
371
+ "minProperties" : 1 ,
372
+ "additionalProperties" : false ,
373
+ "patternRequired" : [
374
+ " ^\\ $\\ $([^\\ .]+)$"
375
+ ]
374
376
},
375
377
"_macro_call_0" : {
376
378
"id" : " #macro_call_0" ,
377
379
"description" : " short syntax for function call" ,
378
380
"type" : " object" ,
379
- "patternGroups " : {
381
+ "patternProperties " : {
380
382
"^\\ $\\ #(.+)$" : {
381
- "schema" : {
382
- "$ref" : " #"
383
- },
384
- "minimum" : 1
383
+ "$ref" : " #"
385
384
}
386
385
},
387
386
"maxProperties" : 1 ,
388
- "additionalProperties" : false
387
+ "minProperties" : 1 ,
388
+ "additionalProperties" : false ,
389
+ "patternRequired" : [
390
+ " ^\\ $\\ #(.+)$"
391
+ ]
389
392
},
390
393
"_macro_calc_0" : {
391
394
"id" : " #macro_calc_0" ,
392
395
"description" : " short calculations syntax" ,
393
396
"type" : " object" ,
394
- "patternGroups " : {
397
+ "patternProperties " : {
395
398
"\\ $([+\\ -*/=!<>&\\ |^]{1,2})" : {
396
- "schema" : {
397
- "$ref" : " #"
398
- },
399
- "minimum" : 1
399
+ "$ref" : " #"
400
400
}
401
401
},
402
402
"maxProperties" : 1 ,
403
- "additionalProperties" : false
403
+ "minProperties" : 1 ,
404
+ "additionalProperties" : false ,
405
+ "patternRequired" : [
406
+ " \\ $([+\\ -*/=!<>&\\ |^]{1,2})"
407
+ ]
404
408
},
405
409
"parallel" : {
406
410
"id" : " #parallel" ,
You can’t perform that action at this time.
0 commit comments