{ "expression": ["boolean", ["get", "x"]], "inputs": [ [{}, {}], [{}, {"properties": {"x": true}}], [{}, {"properties": {"x": false}}], [{}, {"properties": {"x": ""}}], [{}, {"properties": {"x": "false"}}], [{}, {"properties": {"x": 0}}], [{}, {"properties": {"x": 1}}], [{}, {"properties": {"x": null}}] ], "expected": { "compiled": { "result": "success", "isFeatureConstant": false, "isZoomConstant": true, "type": "boolean" }, "outputs": [ { "error": "Expected value to be of type boolean, but found null instead." }, true, false, { "error": "Expected value to be of type boolean, but found string instead." }, { "error": "Expected value to be of type boolean, but found string instead." }, { "error": "Expected value to be of type boolean, but found number instead." }, { "error": "Expected value to be of type boolean, but found number instead." }, {"error": "Expected value to be of type boolean, but found null instead."} ], "serialized": ["boolean", ["get", "x"]] } }