[core] map image type to string until we have a dedicated implementation

This commit is contained in:
Konstantin Käfer
2019-10-14 15:15:54 +02:00
parent 8206ce0e02
commit 9cac122c5c
5 changed files with 44 additions and 37 deletions

View File

@@ -104,7 +104,8 @@ optional<Value> toValue(const JSValue& jsvalue) {
style::expression::type::Type stringToType(const std::string& type) {
using namespace style::expression;
if (type == "string"s || type == "number-format"s) {
if (type == "string"s || type == "number-format"s ||
type == "image"s) { // TODO: replace once we implement image expressions
return type::String;
} else if (type == "number"s) {
return type::Number;