35 lines
885 B
JSON
35 lines
885 B
JSON
{
|
|
"expression": {"type": "identity", "property": "p"},
|
|
"inputs": [
|
|
[{}, {"properties": {}}],
|
|
[{}, {"properties": {"p": [0]}}],
|
|
[{}, {"properties": {"p": [1]}}],
|
|
[{}, {"properties": {"p": "wrong type"}}]
|
|
],
|
|
"propertySpec": {
|
|
"type": "array",
|
|
"value": "number",
|
|
"property-type": "data-driven",
|
|
"expression": {"interpolated": false, "parameters": ["zoom", "feature"]}
|
|
},
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "array<number>"
|
|
},
|
|
"outputs": [
|
|
{
|
|
"error": "Expected value to be of type array<number>, but found null instead."
|
|
},
|
|
[0],
|
|
[1],
|
|
{
|
|
"error": "Expected value to be of type array<number>, but found string instead."
|
|
}
|
|
],
|
|
"serialized": ["array", "number", ["get", "p"]]
|
|
}
|
|
}
|