forked from loafle/openapi-generator-original
UE4 client generator fixes (#6438)
* Added the possibility for a codegen to set the location of the generated model files, similarly to API files. * Removed std::shared_ptr from the generated types. Types in UE4Codegen are handled as POD structs, not shared pointers. * Fixed handling of body parameters as per the specification, the single body object is written directly as the payload. * Fixed handling of files and binaries, if a field is both isFile and isBinary, file will take precedence. * Updated cpp-ue4 client samples * Fixed handling of enums in models Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ public:
|
||||
FString ComputePath() const final;
|
||||
|
||||
/* Created user object */
|
||||
std::shared_ptr<OpenAPIOpenAPIUser> Body;
|
||||
OpenAPIUser Body;
|
||||
};
|
||||
|
||||
class OPENAPI_API OpenAPIUserApi::CreateUserResponse : public Response
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
FString ComputePath() const final;
|
||||
|
||||
/* List of user object */
|
||||
TArray<std::shared_ptr<OpenAPIOpenAPIUser>> Body;
|
||||
TArray<OpenAPIUser> Body;
|
||||
};
|
||||
|
||||
class OPENAPI_API OpenAPIUserApi::CreateUsersWithArrayInputResponse : public Response
|
||||
@@ -80,7 +80,7 @@ public:
|
||||
FString ComputePath() const final;
|
||||
|
||||
/* List of user object */
|
||||
TArray<std::shared_ptr<OpenAPIOpenAPIUser>> Body;
|
||||
TArray<OpenAPIUser> Body;
|
||||
};
|
||||
|
||||
class OPENAPI_API OpenAPIUserApi::CreateUsersWithListInputResponse : public Response
|
||||
@@ -204,7 +204,7 @@ public:
|
||||
/* name that need to be deleted */
|
||||
FString Username;
|
||||
/* Updated user object */
|
||||
std::shared_ptr<OpenAPIOpenAPIUser> Body;
|
||||
OpenAPIUser Body;
|
||||
};
|
||||
|
||||
class OPENAPI_API OpenAPIUserApi::UpdateUserResponse : public Response
|
||||
|
||||
Reference in New Issue
Block a user