Skip to content

The parameter name of request body in a operation should be updated automatically #39729

@ArthurMa1978

Description

@ArthurMa1978

In https://github.com/Azure/azure-sdk-for-net/blob/main/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/BodyParameterNameNormalizer.cs, the current logic only handles suffix-based naming and does not consider the operation type. The expected behavior should be:

  1. For PATCH operations: If the request body is a model, the parameter name should be patch.
  2. For POST operations: If the request body is a model, the parameter name should be content.

Metadata

Metadata

Labels

CodeGenIssues that relate to code generationMgmtThis issue is related to a management-plane library.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions