-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Say, the asyncapi doc have more than 1 parameter in a subscribe topic. Sample topic mentioned at bottom.
Building the cpp generated code throws below error:
src/asyncapi_test_client.cpp:215:56: error: ‘errorType’ was not declared in this scope
215 | _sendErrorCallback(device, errorType, inMsg);
cmd/{device}/dm/get-{errorType}:
description: The topic on which the device will receive a request to upload the specified error type.
parameters:
device:
$ref: '#/components/parameters/device'
errorType:
$ref: '#/components/parameters/errorType'
subscribe:
operationId: sendError
traits:
- $ref: '#/components/operationTraits/mqtt'
message:
$ref: '#/components/messages/getErrorRequest'
Workaround - I have to manually edit the generated code to declare errorType and get it using FromString() in ReceiveMessage() of *_client.cpp. But adding a workaround creates chaos while regenerating the code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels