Schema output is not being sent as empty when there is not return type in LHTaskMethod in Java and Dotnet SDKs #1168
Labels
bug
An issue with correctness, stability, performance, or API conformance.
sdk-dotnet
Affects the .NET SDK (not all clients).
sdk-java
Affects the Java SDK (not all clients).
Context
When using a method that returns a void type it is parsing into a LHVariableType JSON_OBJ in the schema output of the TaskDef, this is placed while creates the lh method signature.
This is happening in the Java and Dotnet SDKs
Steps To Reproduce
Create a Task Worker in Java or Dotnet and generate a method with a void returned value, the taskDef will be registered a Schema Output with a JSON object as result type, which is incorrect
The wrong one is:
{ "id": { "name": "fail" }, "inputVars": [], "createdAt": "2024-11-28T15:46:00.277Z", "schemaOutput": { "valueDef": { "type": "JSON_OBJ", "name": "output", "maskedValue": false } } }
Expected Behavior
When there is not a return type as it is the void case in Java and Dotnet, it should not set a schema output in the taskDef
The correct one is:
{ "name": "complete-order", "inputVars": [ { "type": "STR", "name": "order_id" } ] }
Screenshots
No response
Additional Context
No response
Components
No response
The text was updated successfully, but these errors were encountered: