forked from loafle/openapi-generator-original
fix string comparison in cpp ue4 generator (#7029)
This commit is contained in:
@@ -335,7 +335,7 @@ public class CppUE4ClientCodegen extends AbstractCppCodegen {
|
||||
public String modelFilename(String templateName, String modelName) {
|
||||
String suffix = modelTemplateFiles().get(templateName);
|
||||
String folder = privateFolder;
|
||||
if (suffix == ".h") {
|
||||
if (".h".equals(suffix)) {
|
||||
folder = publicFolder;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,31 +1,31 @@
|
||||
OpenAPI.Build.cs
|
||||
Private\OpenAPIApiResponse.cpp
|
||||
Private\OpenAPIBaseModel.cpp
|
||||
Private\OpenAPICategory.cpp
|
||||
Private\OpenAPIHelpers.cpp
|
||||
Private\OpenAPIModule.cpp
|
||||
Private\OpenAPIModule.h
|
||||
Private\OpenAPIOrder.cpp
|
||||
Private\OpenAPIPet.cpp
|
||||
Private\OpenAPIPetApi.cpp
|
||||
Private\OpenAPIPetApiOperations.cpp
|
||||
Private\OpenAPIStoreApi.cpp
|
||||
Private\OpenAPIStoreApiOperations.cpp
|
||||
Private\OpenAPITag.cpp
|
||||
Private\OpenAPIUser.cpp
|
||||
Private\OpenAPIUserApi.cpp
|
||||
Private\OpenAPIUserApiOperations.cpp
|
||||
Public\OpenAPIApiResponse.h
|
||||
Public\OpenAPIBaseModel.h
|
||||
Public\OpenAPICategory.h
|
||||
Public\OpenAPIHelpers.h
|
||||
Public\OpenAPIOrder.h
|
||||
Public\OpenAPIPet.h
|
||||
Public\OpenAPIPetApi.h
|
||||
Public\OpenAPIPetApiOperations.h
|
||||
Public\OpenAPIStoreApi.h
|
||||
Public\OpenAPIStoreApiOperations.h
|
||||
Public\OpenAPITag.h
|
||||
Public\OpenAPIUser.h
|
||||
Public\OpenAPIUserApi.h
|
||||
Public\OpenAPIUserApiOperations.h
|
||||
Private/OpenAPIApiResponse.cpp
|
||||
Private/OpenAPIBaseModel.cpp
|
||||
Private/OpenAPICategory.cpp
|
||||
Private/OpenAPIHelpers.cpp
|
||||
Private/OpenAPIModule.cpp
|
||||
Private/OpenAPIModule.h
|
||||
Private/OpenAPIOrder.cpp
|
||||
Private/OpenAPIPet.cpp
|
||||
Private/OpenAPIPetApi.cpp
|
||||
Private/OpenAPIPetApiOperations.cpp
|
||||
Private/OpenAPIStoreApi.cpp
|
||||
Private/OpenAPIStoreApiOperations.cpp
|
||||
Private/OpenAPITag.cpp
|
||||
Private/OpenAPIUser.cpp
|
||||
Private/OpenAPIUserApi.cpp
|
||||
Private/OpenAPIUserApiOperations.cpp
|
||||
Public/OpenAPIApiResponse.h
|
||||
Public/OpenAPIBaseModel.h
|
||||
Public/OpenAPICategory.h
|
||||
Public/OpenAPIHelpers.h
|
||||
Public/OpenAPIOrder.h
|
||||
Public/OpenAPIPet.h
|
||||
Public/OpenAPIPetApi.h
|
||||
Public/OpenAPIPetApiOperations.h
|
||||
Public/OpenAPIStoreApi.h
|
||||
Public/OpenAPIStoreApiOperations.h
|
||||
Public/OpenAPITag.h
|
||||
Public/OpenAPIUser.h
|
||||
Public/OpenAPIUserApi.h
|
||||
Public/OpenAPIUserApiOperations.h
|
||||
|
||||
@@ -220,7 +220,6 @@ void OpenAPIPetApi::FindPetsByStatusResponse::SetHttpResponseCode(EHttpResponseC
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
@@ -274,7 +273,6 @@ void OpenAPIPetApi::FindPetsByTagsResponse::SetHttpResponseCode(EHttpResponseCod
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
@@ -327,7 +325,6 @@ void OpenAPIPetApi::GetPetByIdResponse::SetHttpResponseCode(EHttpResponseCodes::
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
@@ -541,7 +538,6 @@ void OpenAPIPetApi::UploadFileResponse::SetHttpResponseCode(EHttpResponseCodes::
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,6 @@ void OpenAPIStoreApi::GetInventoryResponse::SetHttpResponseCode(EHttpResponseCod
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
}
|
||||
@@ -160,7 +159,6 @@ void OpenAPIStoreApi::GetOrderByIdResponse::SetHttpResponseCode(EHttpResponseCod
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
@@ -223,7 +221,6 @@ void OpenAPIStoreApi::PlaceOrderResponse::SetHttpResponseCode(EHttpResponseCodes
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
|
||||
@@ -285,7 +285,6 @@ void OpenAPIUserApi::GetUserByNameResponse::SetHttpResponseCode(EHttpResponseCod
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
@@ -343,7 +342,6 @@ void OpenAPIUserApi::LoginUserResponse::SetHttpResponseCode(EHttpResponseCodes::
|
||||
switch ((int)InHttpResponseCode)
|
||||
{
|
||||
case 200:
|
||||
default:
|
||||
SetResponseString(TEXT("successful operation"));
|
||||
break;
|
||||
case 400:
|
||||
|
||||
Reference in New Issue
Block a user