forked from loafle/openapi-generator-original
* 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>
48 lines
946 B
C++
48 lines
946 B
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"
|
|
|
|
namespace OpenAPI
|
|
{
|
|
|
|
/*
|
|
* OpenAPIOrder
|
|
*
|
|
* An order for a pets from the pet store
|
|
*/
|
|
class OPENAPI_API OpenAPIOrder : public Model
|
|
{
|
|
public:
|
|
virtual ~OpenAPIOrder() {}
|
|
bool FromJson(const TSharedPtr<FJsonObject>& JsonObject) final;
|
|
void WriteJson(JsonWriter& Writer) const final;
|
|
|
|
TOptional<int64> Id;
|
|
TOptional<int64> PetId;
|
|
TOptional<int32> Quantity;
|
|
TOptional<FDateTime> ShipDate;
|
|
enum class StatusEnum
|
|
{
|
|
Placed,
|
|
Approved,
|
|
Delivered,
|
|
};
|
|
/* Order Status */
|
|
TOptional<StatusEnum> Status;
|
|
TOptional<bool> Complete;
|
|
};
|
|
|
|
}
|