diff --git a/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-header.mustache b/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-header.mustache index 67d60535987..cdbf87653d6 100644 --- a/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-header.mustache +++ b/modules/openapi-generator/src/main/resources/cpp-ue4/helpers-header.mustache @@ -126,6 +126,16 @@ inline FString ToString(const FString& Value) return Value; } +inline FString ToString(bool Value) +{ + return Value ? TEXT("true") : TEXT("false"); +} + +inline FStringFormatArg ToStringFormatArg(bool Value) +{ + return FStringFormatArg(ToString(Value)); +} + inline FString ToString(const TArray& Value) { return Base64UrlEncode(Value);