mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 00:13:50 +00:00
* Oat++ Server Generator (C++) * Fixed for support for newest OpenAPI version. * ALPHA not STABLE. * Fixed for support for newest OpenAPI version. * Added github workflow & changed to OA3 Petstore. * Good catch on adding the Workflow. * Might help to update the samples. * Set C++ Standard the CMake way. * Would be easier if there was a .pc file. * oatpp.lib. * Add ws2. * This probably doesn't work, need to take a time out.
61 lines
1.3 KiB
C++
61 lines
1.3 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.
|
|
*
|
|
* The version of the OpenAPI document: 1.0.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
/*
|
|
* Order.h
|
|
*
|
|
* An order for a pets from the pet store
|
|
*/
|
|
|
|
#ifndef Order_H_
|
|
#define Order_H_
|
|
|
|
|
|
#include "oatpp/core/macro/codegen.hpp"
|
|
#include "oatpp/core/Types.hpp"
|
|
|
|
namespace org::openapitools::server::model
|
|
{
|
|
|
|
/* Begin DTO code-generation */
|
|
#include OATPP_CODEGEN_BEGIN(DTO)
|
|
|
|
/**
|
|
* Message Data-Transfer-Object
|
|
*/
|
|
class Order : public oatpp::DTO {
|
|
|
|
DTO_INIT(Order, DTO /* Extends */)
|
|
|
|
DTO_FIELD(oatpp::Int64, Id);
|
|
DTO_FIELD(oatpp::Boolean, IdIsSet);
|
|
DTO_FIELD(oatpp::Int64, PetId);
|
|
DTO_FIELD(oatpp::Boolean, PetIdIsSet);
|
|
DTO_FIELD(oatpp::Int32, Quantity);
|
|
DTO_FIELD(oatpp::Boolean, QuantityIsSet);
|
|
DTO_FIELD(oatpp::String, ShipDate);
|
|
DTO_FIELD(oatpp::Boolean, ShipDateIsSet);
|
|
DTO_FIELD(oatpp::String, Status);
|
|
DTO_FIELD(oatpp::Boolean, StatusIsSet);
|
|
DTO_FIELD(oatpp::Boolean, Complete);
|
|
DTO_FIELD(oatpp::Boolean, CompleteIsSet);
|
|
|
|
|
|
|
|
};
|
|
|
|
/* End DTO code-generation */
|
|
#include OATPP_CODEGEN_END(DTO)
|
|
|
|
} // namespace org::openapitools::server::model
|
|
|
|
#endif /* Order_H_ */
|