Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body missing in generated code in cadl-ranch #2115

Closed
zzhxiaofeng opened this issue Nov 14, 2023 · 0 comments · Fixed by #2117
Closed

Body missing in generated code in cadl-ranch #2115

zzhxiaofeng opened this issue Nov 14, 2023 · 0 comments · Fixed by #2117
Assignees

Comments

@zzhxiaofeng
Copy link
Contributor

zzhxiaofeng commented Nov 14, 2023

Issue description:
Body missing in generated code for extensible enum, fixed enum, empty model and dictionary. the detailed error code is shown as following:
image

Suggestion:
Update the code and add body to return value as following:

export function _putKnownValueSend(
  context: Client,
  body: DaysOfWeekEnum,
  options: PutKnownValueOptions = { requestOptions: {} }
): StreamableMethod<PutKnownValue204Response> {
  return context
    .path("/type/enum/fixed/string/known-value")
    .put({ ...operationOptionsToRequestParameters(options), body });
}

@qiaozha for notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment