27 lines
743 B
JSON
27 lines
743 B
JSON
{
|
|
"expression": [
|
|
"boolean",
|
|
["in", ["get", "needle"], ["get", "haystack"]]
|
|
],
|
|
"inputs": [
|
|
[{}, {"properties": {"needle": {}, "haystack": [9, 8, 7]}}],
|
|
[{}, {"properties": {"needle": {}, "haystack": "helloworld"}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "boolean"
|
|
},
|
|
"outputs": [
|
|
{"error":"Expected first argument to be of type boolean, string or number, but found object instead."},
|
|
{"error":"Expected first argument to be of type boolean, string or number, but found object instead."}
|
|
],
|
|
"serialized": [
|
|
"boolean",
|
|
["in", ["get", "needle"], ["get", "haystack"]]
|
|
]
|
|
}
|
|
}
|