Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

remove duplicate setter methods from child schema when parent schema contains same property #1320

Description

@XiaofeiCao

code gen error in https://github.com/Azure/sdk-release-request/issues/2348

https://github.com/Azure/azure-rest-api-specs/blob/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/botservice.json#L2648-L2669

"allOf": [
    {
     "$ref": "#/definitions/WebChatSite"
    },
   {
     "$ref": "#/definitions/DirectLineSite"
   }
]

WebChatSiteand DirectLineSite contain same property siteName and code gen generates duplicate methods in child schema.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions