Skip to content

Body missing in generated code in cadl-ranch #2115

@zzhxiaofeng

Description

@zzhxiaofeng

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions