You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TCGC appears to be wrong when the method body parameter got spread (or maybe only when there is 2 spread in body?).
error @azure-tools/typespec-client-generator-core/no-corresponding-method-param: Missing "completeRequest" method parameter in method "complete", when "completeRequest" must be sent to the service. Add a parameter named "completeRequest" to the method.
error @azure-tools/typespec-client-generator-core/no-corresponding-method-param: Missing "embedRequest" method parameter in method "embed", when "embedRequest" must be sent to the service. Add a parameter named "embedRequest" to the method.
error @azure-tools/typespec-client-generator-core/no-corresponding-method-param: Missing "embedRequest1" method parameter in method "embed", when "embedRequest1" must be sent to the service. Add a parameter named "embedRequest1" to the method.
The root cause is from: microsoft/typespec#4757. Suggestion: refine the spec definition since spread additional properties model in body is meaningless.
Describe the bug
The diagnostic is error and cannot be ignored.
TCGC appears to be wrong when the method body parameter got spread (or maybe only when there is 2 spread in body?).
log
full run on existing libs
Reproduction
source is
https://github.com/Azure/azure-rest-api-specs/blob/016b80ae90f5fabc1e572efabd3ecb1030d444c0/specification/ai/ModelClient/routes.tsp#L26
(it is not merged to main branch, PR Azure/azure-rest-api-specs#28438)
SDK at https://github.com/Azure/azure-sdk-for-java/tree/5e07b10d9b04fe8c73a4ee6c78f8aeb9786e0543/sdk/ai/azure-ai-inference
Checklist
The text was updated successfully, but these errors were encountered: