Bug Report Checklist
Description
When generating a simple example with the cpp-pistache-server generator the api-header has a wrong include #include "json.hpp" which is not available. The include path needs to be #include <nlohmann/json.hpp>.
openapi-generator version
Checked with
- latest master
- latest 5.0.x
OpenAPI declaration file content or url
openapi: 3.0.2
info:
title: Test oneof
version: 0.0.1
paths:
/project:
get:
responses:
200:
description: ok
components:
schemas:
Project:
properties:
code:
type: string
type: object
Command line used for generation
java -jar openapi-generator-cli.jar generate -g cpp-pistache-server -i openapi.yaml
Steps to reproduce
Generate with example above and try to compile.
Related issues/PRs
Suggest a fix
Change the include path to correct value.
Bug Report Checklist
Description
When generating a simple example with the cpp-pistache-server generator the api-header has a wrong include
#include "json.hpp"which is not available. The include path needs to be#include <nlohmann/json.hpp>.openapi-generator version
Checked with
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
Generate with example above and try to compile.
Related issues/PRs
Suggest a fix
Change the include path to correct value.