Skip to content

Commit 991e0bf

Browse files
muttleyxdetherealjoy
authored andcommitted
[C++][Pistache] Use optional when required (#4082)
* [C++][Pistache] Include pistache/optional only when required * [C++][Pistache] Update Petstore sample
1 parent 0526cce commit 991e0bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/openapi-generator/src/main/resources/cpp-pistache-server/model-struct-header.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{{#imports}}{{{this}}}
1313
{{/imports}}
1414
#include <nlohmann/json.hpp>
15-
#include <pistache/optional.h>
15+
{{#hasOptional}}#include <pistache/optional.h>{{/hasOptional}}
1616

1717
{{#modelNamespaceDeclarations}}
1818
namespace {{this}} {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.3-SNAPSHOT
1+
4.2.0-SNAPSHOT

0 commit comments

Comments
 (0)