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 OpenAPIStoreApi::DeleteOrderResponse : public Response
|
||||
public:
|
||||
virtual ~DeleteOrderResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
|
||||
};
|
||||
@@ -63,7 +63,7 @@ class OPENAPI_API OpenAPIStoreApi::GetInventoryResponse : public Response
|
||||
public:
|
||||
virtual ~GetInventoryResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
TMap<FString, int32> Content;
|
||||
};
|
||||
@@ -88,7 +88,7 @@ class OPENAPI_API OpenAPIStoreApi::GetOrderByIdResponse : public Response
|
||||
public:
|
||||
virtual ~GetOrderByIdResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
OpenAPIOrder Content;
|
||||
};
|
||||
@@ -112,7 +112,7 @@ class OPENAPI_API OpenAPIStoreApi::PlaceOrderResponse : public Response
|
||||
public:
|
||||
virtual ~PlaceOrderResponse() {}
|
||||
void SetHttpResponseCode(EHttpResponseCodes::Type InHttpResponseCode) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonObject) final;
|
||||
bool FromJson(const TSharedPtr<FJsonValue>& JsonValue) final;
|
||||
|
||||
OpenAPIOrder Content;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user