29 lines
787 B
JSON
29 lines
787 B
JSON
{
|
|
"expression": [
|
|
"boolean",
|
|
["in", ["get", "needle"], ["get", "haystack"]]
|
|
],
|
|
"inputs": [
|
|
[{}, {"properties": {"needle": 1, "haystack": 123}}],
|
|
[{}, {"properties": {"needle": "foo", "haystack": {}}}],
|
|
[{}, {"properties": {"needle": "foo", "haystack": null}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "boolean"
|
|
},
|
|
"outputs": [
|
|
{"error":"Expected second argument to be of type array or string, but found number instead."},
|
|
{"error":"Expected second argument to be of type array or string, but found object instead."},
|
|
false
|
|
],
|
|
"serialized": [
|
|
"boolean",
|
|
["in", ["get", "needle"], ["get", "haystack"]]
|
|
]
|
|
}
|
|
}
|