Open
Description
Describe the bug
I am working on generating a Java client library for the Azure OpenAI Realtime Audio service in this PR. The code generation is based of this TSP specification.
The issue injects a String object
parameter to the constructor of the RealtimeResponseMessageItem
, RealtimeResponseFunctionCallOutputItem
classes which causes an error for the deserialization method.
Reproduction
By using the tsp-client sync
and tsp-client generate
commands, one can reproduce the issue currently with the repository in the present state of the PR linked in the description of the issue (Azure/azure-sdk-for-java#42707)
This results in the following constructors being generated for their respective classes:
@Generated
private RealtimeResponseFunctionCallOutputItem(String object, String id, String callId, String output) {
super(object, id);
this.callId = callId;
this.output = output;
}
and
@Generated
private RealtimeResponseFunctionCallItem(String object, String id, String name, String callId, String arguments,
RealtimeItemStatus status) {
super(object, id);
this.name = name;
this.callId = callId;
this.arguments = arguments;
this.status = status;
}
Checklist
- Follow our Code of Conduct
- Check that there isn't already an issue that request the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- The provided reproduction is a minimal reproducible example of the bug.