forked from loafle/openapi-generator-original
[C++][Ue4] various bus fixes (#6539)
* Fixed compilation on linux and UE4.23 * Added string and enum type definition support * Better handling or variable names, should avoid conflicts with reserved keywords or empty variable names in edge cases * Updated samples
This commit is contained in:
@@ -40,7 +40,7 @@ class OPENAPI_API OpenAPIUserApi::CreateUserResponse : public Response
|
||||
public:
|
||||
virtual ~CreateUserResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
@@ -64,7 +64,7 @@ class OPENAPI_API OpenAPIUserApi::CreateUsersWithArrayInputResponse : public Res
|
||||
public:
|
||||
virtual ~CreateUsersWithArrayInputResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
@@ -88,7 +88,7 @@ class OPENAPI_API OpenAPIUserApi::CreateUsersWithListInputResponse : public Resp
|
||||
public:
|
||||
virtual ~CreateUsersWithListInputResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
@@ -113,7 +113,7 @@ class OPENAPI_API OpenAPIUserApi::DeleteUserResponse : public Response
|
||||
public:
|
||||
virtual ~DeleteUserResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
@@ -137,7 +137,7 @@ class OPENAPI_API OpenAPIUserApi::GetUserByNameResponse : public Response
|
||||
public:
|
||||
virtual ~GetUserByNameResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
OpenAPIUser Content;
|
||||
};
|
||||
@@ -163,7 +163,7 @@ class OPENAPI_API OpenAPIUserApi::LoginUserResponse : public Response
|
||||
public:
|
||||
virtual ~LoginUserResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
FString Content;
|
||||
};
|
||||
@@ -185,7 +185,7 @@ class OPENAPI_API OpenAPIUserApi::LogoutUserResponse : public Response
|
||||
public:
|
||||
virtual ~LogoutUserResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
@@ -212,7 +212,7 @@ class OPENAPI_API OpenAPIUserApi::UpdateUserResponse : public Response
|
||||
public:
|
||||
virtual ~UpdateUserResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user