swagger-codegen
swagger-codegen copied to clipboard
[C++][Pistache-server] Compilation error from missing header "ByteArray.h"
Description
When I tried to compile the generated Pistache server it gives me the following error:
/swagger-pistache/model/Frame.h:25:23: fatal error: ByteArray.h: No such file or directory
Frame.h:
#ifndef Frame_H_
#define Frame_H_
#include "ModelBase.h"
#include <string>
#include "ByteArray.h" //this header does not exists
#include "Event.h"
#include <map>
#include <vector>
Swagger-codegen version
2.4
Swagger declaration file content or url
https://raw.githubusercontent.com/deepviss/deepviss-server-example/master/src/main/resources/deep-viss.json
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate / -i deep-viss.json / -l pistache-server / -o ../swagger-pistache
Steps to reproduce
Note: Assuming Pistache server is installed
- go to the folder where the code was generated
- copy json.hpp (from https://github.com/nlohmann/json) to model
- mkdir build && cd build
- cmake ..
- make