Skip to content

Commit 653a519

Browse files
committed
fix $call instruciton
1 parent c14bd06 commit 653a519

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

LANGUAGE.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Anonymous or named function can be defined in the script to be passed to executo
360360
"$method": "get",
361361
"$args": { "path": { "$data": "/path" } }
362362
},
363-
"$name": "getRes"
363+
"$name": "getRes",
364364
"$args": [ "path" ]
365365
},
366366
{
@@ -407,4 +407,3 @@ Functions can be used as parameters in the executors:
407407
```
408408

409409
If the function was previously defined it can be passed either using `"$ref"` with an absolute or relative JSON-pointer or `{ "$func": "myfunc" }. The latter always evaluates as the reference to the existing function rather than the function that always returns string "myfunc".
410-

instructions/$call.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keywords": ["$call", "$args"],
55
"required": ["$call"],
66
"evaluate": {
7-
"validatorKeyword": "call$func",
7+
"validatorKeyword": "eval$call",
88
"title": "function call",
99
"description": "calls function"
1010
},

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jsonscript",
3-
"version": "0.2.2",
3+
"version": "0.2.3",
44
"description": "Platform independent asynchronous and concurrent scripting language using JSON format",
55
"main": "index.js",
66
"scripts": {
@@ -23,7 +23,7 @@
2323
},
2424
"homepage": "https://github.com/JSONScript/jsonscript",
2525
"devDependencies": {
26-
"ajv": "^3.6.2",
26+
"ajv": "^4.0.4",
2727
"dot": "^1.0.3",
2828
"gh-pages-generator": "^0.2.2",
2929
"json-schema-test": "^1.2.1",

0 commit comments

Comments
 (0)