Skip to content

Conversation

@v-jiaodi
Copy link
Member

fixes #3614

@v-jiaodi v-jiaodi marked this pull request as ready for review December 1, 2025 02:53
@qiaozha qiaozha added the p0 priority 0 label Dec 3, 2025
const bodyParam = method.operation.bodyParam;
const bodySerializeName = bodyParam?.serializedName;
const bodyExample = parameterMap[bodySerializeName ?? ""];
if (bodySerializeName && bodyExample && bodyExample.value) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// required/optional body parameters
const bodyParam = method.operation.bodyParam;
const bodySerializeName = bodyParam?.serializedName;
const bodyExample = parameterMap[bodySerializeName ?? ""];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if bodySerializeName is empty, how do we get bodyExample in parameterMap?

@qiaozha qiaozha added P1 priority 1 and removed p0 priority 0 labels Dec 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 priority 1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[sample gen] Spread body parameter is not handled correctly

3 participants