Skip to content

Commit 5245275

Browse files
committed
add test for anytype in cpp qt client
1 parent c1b8780 commit 5245275

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

modules/openapi-generator/src/test/resources/3_0/cpp-qt/petstore.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,3 +743,13 @@ components:
743743
type: string
744744
message:
745745
type: string
746+
TestAnyType:
747+
title: test any type
748+
description: test any type
749+
type: object
750+
properties:
751+
code:
752+
description: any type test
753+
message:
754+
type: string
755+

samples/client/petstore/cpp-qt/.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ client/PFXStoreApi.cpp
2828
client/PFXStoreApi.h
2929
client/PFXTag.cpp
3030
client/PFXTag.h
31+
client/PFXTestAnyType.cpp
32+
client/PFXTestAnyType.h
3133
client/PFXUser.cpp
3234
client/PFXUser.h
3335
client/PFXUserApi.cpp

samples/client/petstore/cpp-qt/client/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ add_library(${PROJECT_NAME}
2121
PFXOrder.cpp
2222
PFXPet.cpp
2323
PFXTag.cpp
24+
PFXTestAnyType.cpp
2425
PFXUser.cpp
2526
PFXPetApi.cpp
2627
PFXPrimitivesApi.cpp

samples/client/petstore/cpp-qt/client/PFXclient.pri

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ HEADERS += \
77
$${PWD}/PFXOrder.h \
88
$${PWD}/PFXPet.h \
99
$${PWD}/PFXTag.h \
10+
$${PWD}/PFXTestAnyType.h \
1011
$${PWD}/PFXUser.h \
1112
# APIs
1213
$${PWD}/PFXPetApi.h \
@@ -30,6 +31,7 @@ SOURCES += \
3031
$${PWD}/PFXOrder.cpp \
3132
$${PWD}/PFXPet.cpp \
3233
$${PWD}/PFXTag.cpp \
34+
$${PWD}/PFXTestAnyType.cpp \
3335
$${PWD}/PFXUser.cpp \
3436
# APIs
3537
$${PWD}/PFXPetApi.cpp \

0 commit comments

Comments
 (0)