William Cheng c000eaef73
Add C++ UE4 client generator (#6399)
* Added new language: UE4 C++ client

* rename generator

* add copyright

* update doc

* fix with Locale.ROOT

* add new file

* minor improvements

* remove postProcessModels

Co-authored-by: Samuel Kahn <samuel@kahncode.com>
2020-05-25 18:33:48 +08:00

50 lines
1.0 KiB
C++

/**
* OpenAPI Petstore
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator
* https://github.com/OpenAPITools/openapi-generator
* Do not edit the class manually.
*/
#pragma once
#include "OpenAPIBaseModel.h"
#include "OpenAPICategory.h"
#include "OpenAPITag.h"
namespace OpenAPI
{
/*
* OpenAPIPet
*
* A pet for sale in the pet store
*/
class OPENAPI_API OpenAPIPet : public Model
{
public:
virtual ~OpenAPIPet() {}
bool FromJson(const TSharedPtr<FJsonObject>& JsonObject) final;
void WriteJson(JsonWriter& Writer) const final;
TOptional<int64> Id;
TOptional<OpenAPICategory> Category;
FString Name;
TArray<std::shared_ptr<FString>> PhotoUrls;
TOptional<TArray<std::shared_ptr<OpenAPIOpenAPITag>>> Tags;
enum class StatusEnum
{
Available,
Pending,
Sold,
};
/* pet status in the store */
TOptional<StatusEnum> Status;
};
}