forked from loafle/openapi-generator-original
[cpp-ue4] Fix model generation for arbitrary-typed values (#10267)
* Replace AnyType declaration with FJsonValue * Rebuild docs
This commit is contained in:
parent
9c66d33171
commit
691a10ad8e
@ -43,6 +43,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
|
||||
<li>TArray<uint8></li>
|
||||
<li>TMap</li>
|
||||
<li>TSharedPtr<FJsonObject></li>
|
||||
<li>TSharedPtr<FJsonValue></li>
|
||||
<li>bool</li>
|
||||
<li>double</li>
|
||||
<li>float</li>
|
||||
|
@ -145,7 +145,8 @@ public class CppUE4ClientCodegen extends AbstractCppCodegen {
|
||||
"TArray",
|
||||
"TArray<uint8>", // For byte arrays
|
||||
"TMap",
|
||||
"TSharedPtr<FJsonObject>")
|
||||
"TSharedPtr<FJsonObject>",
|
||||
"TSharedPtr<FJsonValue>")
|
||||
);
|
||||
|
||||
supportingFiles.add(new SupportingFile("model-base-header.mustache", publicFolder, modelNamePrefix + "BaseModel.h"));
|
||||
@ -185,6 +186,7 @@ public class CppUE4ClientCodegen extends AbstractCppCodegen {
|
||||
typeMapping.put("Object", "TSharedPtr<FJsonObject>");
|
||||
typeMapping.put("file", "HttpFileInput");
|
||||
typeMapping.put("UUID", "FGuid");
|
||||
typeMapping.put("AnyType", "TSharedPtr<FJsonValue>");
|
||||
|
||||
importMapping = new HashMap<String, String>();
|
||||
importMapping.put("HttpFileInput", "#include \"" + modelNamePrefix + "Helpers.h\"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user