swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.09k stars 6.03k forks source link

Missing object.h Headerfile in server side code (c++ restbed) #11756

Open samrajput1143 opened 2 years ago

samrajput1143 commented 2 years ago
Description

During compilation stage got an error saying missing object.h

Swagger-codegen version

iam using https://editor.swagger.io/ to generate swagger codegen . In open api specs i have mentioned version as swagger: '2.0'

Swagger declaration file content or url

swagger: '2.0' info: description: This is the initial REST API for RIC subscription version: 0.0.4 title: RIC subscription license: name: Apache 2.0 url: 'http://www.apache.org/licenses/LICENSE-2.0.html' host: hostname basePath: /ric/v1 schemes:

samrajput1143 commented 2 years ago

We should place this object.h header file in the code.

This class will represent the implementation of json object. I think, restbed dosen't have the JSON parser.

The code is using #include <boost/property_tree/json_parser.hpp>