mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 08:31:26 +00:00
* Disable creation of empty json fields and fields for primitives which were not set, but using default values modelnamePrefix will be the one passed from command line or SWG if none * Updates after review Also common http files are splitted Update Petstore examples
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 <QJsonValue>
|
|
|
|
namespace Swagger {
|
|
|
|
class SWGObject {
|
|
public:
|
|
virtual QJsonObject* asJsonObject() {
|
|
return new 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_ */
|