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

[emitter] Review comment with duplicated models to report errors for mgmt duplicated models #3860

Description

@MaryGao

Background

During the SDK release phase, we often receive review comments on public APIs that require the service team to modify the original specification and regenerate the SDK. This frequently leads to multiple rounds of back-and-forth discussions. It would be beneficial to revisit these cases and determine:

  • Whether the issue can be addressed on the emitter side, or
  • Whether the emitter or TCGC should report errors or diagnostics earlier.

Review Comment

This is a case where the AI flags duplicated models generated, which is unexpected. The _1 suffix is auto-generated to resolve a name collision between two distinct models mapped to the same TypeSpec name, which is a sign of duplicated or ambiguously-named models in the spec.

Suggestion

It depends on if we need to generate all models as the same namespace

  • if yes, report errors for duplicated models and resolve them in validation phase and this would apply to mgmt SDKs.
  • if no, resolve conflicts then.

Metadata

Metadata

Labels

AzSDK Tools AgentIssue related to the AzSDK Tools Agent.HRLCP1priority 1

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