You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generated sources for cpp-pistache-server, fails to compile with x86_64-linux-gnu-g++-13 . The particular issue is
Actual output:
[ 95%] Building CXX object CMakeFiles/api-server.dir/main-api-server.cpp.o
/tmp/foo/cpp/model/Helpers.cpp:28:27: error: ‘uint16_t’ does not name a type
28 | bool isLeapYear(const uint16_t year) {
| ^~~~~~~~
/tmp/foo/cpp/model/Helpers.cpp:14:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
13 | #include <regex>
+++ |+#include <cstdint>
14 |
Expected output:
...
...
[ 82%] Building CXX object CMakeFiles/api-server.dir/model/Helpers.cpp.o
[ 82%] Building CXX object CMakeFiles/api-server.dir/api/SecurityApi.cpp.o
[ 86%] Linking CXX executable api-server
[100%] Built target api-server
openapi: 3.0.2servers:
- url: http://localhost/v3description: Localhost. Might use live data.info:
description: |- This is a demonstration APIversion: 1.0.1title: Fubar APItermsOfService: 'http://foo.bar.com/tos'contact:
email: [email protected]tags:
- name: Foosdescription: Anything related to Foospaths:
/foo:
get:
summary: Returns a foooperationId: returnFootags: [ Foos ]responses:
'200':
description: A Foo fresh from the Bar.content:
text/plain:
schema:
type: stringexample: "Foo"
Generation Details
Steps to reproduce
java -jar modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g cpp-pistache-server -i api.yaml -o cpp
cd cpp
cmake .
make -j
Related issues/PRs
Suggest a fix
I suggest adding
#include<cstdint>
to the relevant Mustache template.
The text was updated successfully, but these errors were encountered:
winkler-pixop
changed the title
[BUG] [CPP] [pistache-server]
[BUG] [CPP] [pistache-server] Generated code fails to build with x86_64-linux-gnu-g++-13
Sep 26, 2024
Bug Report Checklist
Description
Generated sources for cpp-pistache-server, fails to compile with x86_64-linux-gnu-g++-13 . The particular issue is
Actual output:
Expected output:
openapi-generator version
master @ 29c3b02
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Related issues/PRs
Suggest a fix
I suggest adding
to the relevant Mustache template.
The text was updated successfully, but these errors were encountered: