[companion] Properly write String zone option values

This commit is contained in:
Raphael Coeffic
2022-01-10 08:32:49 +01:00
parent fcf8fbdfff
commit 22762e0a16
@@ -58,6 +58,9 @@ Node convert<ZoneOptionValueTyped>::encode(const ZoneOptionValueTyped& rhs)
case ZOV_Bool:
value["boolValue"] = rhs.value.boolValue;
break;
case ZOV_String:
value["stringValue"] = std::string(rhs.value.stringValue);
break;
case ZOV_Source:
value["source"] = rhs.value.sourceValue;
break;