forked from loafle/openapi-generator-original
* Small fixes to prevent crash when empty json body is provided. * Fix some more memory Leaks in the model-body - Members not deleted in cleanup() method, for maps/arrays of primitive types. - Avoid undefined behavior when updating class members with data from missing json fields
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
/**
|
|
* Swagger Petstore
|
|
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* OpenAPI spec version: 1.0.0
|
|
* Contact: apiteam@swagger.io
|
|
*
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
#ifndef _SWG_OBJECT_H_
|
|
#define _SWG_OBJECT_H_
|
|
|
|
#include <QJsonObject>
|
|
|
|
namespace Swagger {
|
|
|
|
class SWGObject {
|
|
public:
|
|
virtual QJsonObject asJsonObject() {
|
|
return QJsonObject();
|
|
}
|
|
virtual ~SWGObject() {}
|
|
virtual SWGObject* fromJson(QString jsonString) {
|
|
Q_UNUSED(jsonString);
|
|
return new SWGObject();
|
|
}
|
|
virtual void fromJsonObject(QJsonObject json) {
|
|
Q_UNUSED(json);
|
|
}
|
|
virtual QString asJson() {
|
|
return QString("");
|
|
}
|
|
virtual bool isSet() {
|
|
return false;
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* _SWG_OBJECT_H_ */
|